aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];