summaryrefslogtreecommitdiff
path: root/target-mips/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-mips/cpu.h')
-rw-r--r--target-mips/cpu.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/target-mips/cpu.h b/target-mips/cpu.h
index 9fa0ca8c6c..6dff8ef557 100644
--- a/target-mips/cpu.h
+++ b/target-mips/cpu.h
@@ -284,10 +284,8 @@ struct CPUMIPSState {
int CCRes; /* Cycle count resolution/divisor */
int Status_rw_bitmask; /* Read/write bits in CP0_Status */
-#if defined(CONFIG_USER_ONLY)
+#ifdef CONFIG_USER_ONLY
target_ulong tls_value;
-#else
- void *irq[8];
#endif
CPU_COMMON
@@ -298,6 +296,9 @@ struct CPUMIPSState {
const char *initrd_filename;
mips_def_t *cpu_model;
+#ifndef CONFIG_USER_ONLY
+ void *irq[8];
+#endif
struct QEMUTimer *timer; /* Internal timer */
};