[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT acc6883] x86: split FPReg union
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT acc6883] x86: split FPReg union |
Date: |
Mon, 05 Oct 2009 14:53:14 -0000 |
From: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 1bf027e..6d6ceb3 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT acc6883] x86: split FPReg union,
Anthony Liguori <=