aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-29 22:48:59 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:42 -0500
commitc1a54d573bae6c597eaa3c9ca6135930c5cd5215 (patch)
tree9b4406e439f4ddeb5883dd98a308c15ade129830
parentacc68836793228a1eaf173a41793259637797b69 (diff)
x86: split MTRRVar union
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-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 6d6ceb32ee..a87af3b297 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -565,6 +565,11 @@ typedef union {
MMXReg mmx;
} FPReg;
+typedef struct {
+ uint64_t base;
+ uint64_t mask;
+} MTRRVar;
+
#ifdef TARGET_X86_64
#define CPU_NB_REGS 16
#else
@@ -683,10 +688,7 @@ typedef struct CPUX86State {
/* MTRRs */
uint64_t mtrr_fixed[11];
uint64_t mtrr_deftype;
- struct {
- uint64_t base;
- uint64_t mask;
- } mtrr_var[8];
+ MTRRVar mtrr_var[8];
/* For KVM */
uint64_t interrupt_bitmap[256 / 64];