]> Git Repo - qemu.git/commitdiff
x86: split FPReg union
authorJuan Quintela <[email protected]>
Tue, 29 Sep 2009 20:48:58 +0000 (22:48 +0200)
committerAnthony Liguori <[email protected]>
Mon, 5 Oct 2009 14:32:42 +0000 (09:32 -0500)
Signed-off-by: Juan Quintela <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
target-i386/cpu.h

index 1bf027ebfcef8e1413e24d2320e494575186632c..6d6ceb32ee9907fa0136b03683a4e398e460cea6 100644 (file)
@@ -556,6 +556,15 @@ typedef union {
 #endif
 #define MMX_Q(n) q
 
+typedef union {
+#ifdef USE_X86LDOUBLE
+    CPU86_LDouble d __attribute__((aligned(16)));
+#else
+    CPU86_LDouble d;
+#endif
+    MMXReg mmx;
+} FPReg;
+
 #ifdef TARGET_X86_64
 #define CPU_NB_REGS 16
 #else
@@ -599,14 +608,7 @@ typedef struct CPUX86State {
     uint16_t fpregs_format_vmstate;
     uint16_t fpuc;
     uint8_t fptags[8];   /* 0 = valid, 1 = empty */
-    union {
-#ifdef USE_X86LDOUBLE
-        CPU86_LDouble d __attribute__((aligned(16)));
-#else
-        CPU86_LDouble d;
-#endif
-        MMXReg mmx;
-    } fpregs[8];
+    FPReg fpregs[8];
 
     /* emulator internal variables */
     float_status fp_status;
This page took 0.023725 seconds and 4 git commands to generate.