aboutsummaryrefslogtreecommitdiff
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2009-10-05 22:41:04 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-10-05 22:41:04 +0200
commit5a2d0e57ad5ce1cf6bf0334feb5adc38896bea80 (patch)
tree171a507320a65255b9ebd375d264c340df773f7a /target-i386/cpu.h
parent0b4ce02eb25e2aa85097d717040f0e1f83908593 (diff)
downloadqemu-5a2d0e57ad5ce1cf6bf0334feb5adc38896bea80.zip
qemu-5a2d0e57ad5ce1cf6bf0334feb5adc38896bea80.tar.gz
qemu-5a2d0e57ad5ce1cf6bf0334feb5adc38896bea80.tar.bz2
target-i386: move recently added vmstate fields at the end of the structure
This reduce the impact on hosts that have addressing modes with limited offsets. Suggested by Laurent Desnogues. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index a1107a2..5929d28 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -611,9 +611,6 @@ typedef struct CPUX86State {
/* FPU state */
unsigned int fpstt; /* top of stack index */
uint16_t fpus;
- uint16_t fpus_vmstate;
- uint16_t fptag_vmstate;
- uint16_t fpregs_format_vmstate;
uint16_t fpuc;
uint8_t fptags[8]; /* 0 = valid, 1 = empty */
FPReg fpregs[8];
@@ -695,7 +692,6 @@ typedef struct CPUX86State {
/* For KVM */
uint64_t interrupt_bitmap[256 / 64];
- int32_t pending_irq_vmstate;
uint32_t mp_state;
/* in order to simplify APIC support, we leave this pointer to the
@@ -708,6 +704,12 @@ typedef struct CPUX86State {
uint64 mce_banks[MCE_BANKS_DEF*4];
uint64_t tsc_aux;
+
+ /* vmstate */
+ uint16_t fpus_vmstate;
+ uint16_t fptag_vmstate;
+ uint16_t fpregs_format_vmstate;
+ int32_t pending_irq_vmstate;
} CPUX86State;
CPUX86State *cpu_x86_init(const char *cpu_model);