aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-29 22:48:58 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:42 -0500
commitacc68836793228a1eaf173a41793259637797b69 (patch)
treec415670fe1bbfd6ec042d3aba3a5af9724439e26 /target-i386
parente5cc6429dee00f3170bb6a18600d6d29b854b7d9 (diff)
downloadqemu-acc68836793228a1eaf173a41793259637797b69.zip
qemu-acc68836793228a1eaf173a41793259637797b69.tar.gz
qemu-acc68836793228a1eaf173a41793259637797b69.tar.bz2
x86: split FPReg union
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/cpu.h18
1 files changed, 10 insertions, 8 deletions
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;