summaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/cpu.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index a87af3b297..a1107a2772 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -570,10 +570,13 @@ typedef struct {
uint64_t mask;
} MTRRVar;
+#define CPU_NB_REGS64 16
+#define CPU_NB_REGS32 8
+
#ifdef TARGET_X86_64
-#define CPU_NB_REGS 16
+#define CPU_NB_REGS CPU_NB_REGS64
#else
-#define CPU_NB_REGS 8
+#define CPU_NB_REGS CPU_NB_REGS32
#endif
#define NB_MMU_MODES 2