diff options
author | Richard Henderson <rth@twiddle.net> | 2016-07-06 13:35:00 -0700 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-09-19 15:34:35 -0300 |
commit | 3f32bd21df655e62eb271182a5c63280d631c7b3 (patch) | |
tree | 6edf1fb66d7ce7fdc8551a8b8e610d8a1ef63ffb /target-i386/cpu.h | |
parent | 33e1666b4289313306371fee0740f5c85517e406 (diff) |
target-i386: Use struct X86XSaveArea in fpu_helper.c
This avoids a double hand-full of magic numbers in the
xsave and xrstor helper functions.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r-- | target-i386/cpu.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 58e43b6f4b..27af9c3f9a 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -877,7 +877,8 @@ typedef union X86LegacyXSaveArea { typedef struct X86XSaveHeader { uint64_t xstate_bv; uint64_t xcomp_bv; - uint8_t reserved[48]; + uint64_t reserve0; + uint8_t reserved[40]; } X86XSaveHeader; /* Ext. save area 2: AVX State */ @@ -1392,13 +1393,6 @@ int cpu_x86_signal_handler(int host_signum, void *pinfo, void *puc); /* cpu.c */ -typedef struct ExtSaveArea { - uint32_t feature, bits; - uint32_t offset, size; -} ExtSaveArea; - -extern const ExtSaveArea x86_ext_save_areas[]; - void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx); |