x86: split FPReg union
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
e5cc6429de
commit
acc6883679
@ -556,6 +556,15 @@ typedef union {
|
|||||||
#endif
|
#endif
|
||||||
#define MMX_Q(n) q
|
#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
|
#ifdef TARGET_X86_64
|
||||||
#define CPU_NB_REGS 16
|
#define CPU_NB_REGS 16
|
||||||
#else
|
#else
|
||||||
@ -599,14 +608,7 @@ typedef struct CPUX86State {
|
|||||||
uint16_t fpregs_format_vmstate;
|
uint16_t fpregs_format_vmstate;
|
||||||
uint16_t fpuc;
|
uint16_t fpuc;
|
||||||
uint8_t fptags[8]; /* 0 = valid, 1 = empty */
|
uint8_t fptags[8]; /* 0 = valid, 1 = empty */
|
||||||
union {
|
FPReg fpregs[8];
|
||||||
#ifdef USE_X86LDOUBLE
|
|
||||||
CPU86_LDouble d __attribute__((aligned(16)));
|
|
||||||
#else
|
|
||||||
CPU86_LDouble d;
|
|
||||||
#endif
|
|
||||||
MMXReg mmx;
|
|
||||||
} fpregs[8];
|
|
||||||
|
|
||||||
/* emulator internal variables */
|
/* emulator internal variables */
|
||||||
float_status fp_status;
|
float_status fp_status;
|
||||||
|
Loading…
Reference in New Issue
Block a user