aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/cpu2.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m32r/cpu2.h')
-rw-r--r--sim/m32r/cpu2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m32r/cpu2.h b/sim/m32r/cpu2.h
index bd98a98..5dc4d64 100644
--- a/sim/m32r/cpu2.h
+++ b/sim/m32r/cpu2.h
@@ -94,7 +94,7 @@ m32r2f_h_psw_set_handler (current_cpu, (x));\
#define GET_H_LOCK() CPU (h_lock)
#define SET_H_LOCK(x) (CPU (h_lock) = (x))
} hardware;
-#define CPU_CGEN_HW(cpu) (& (cpu)->cpu_data.hardware)
+#define CPU_CGEN_HW(cpu) (& M32R_SIM_CPU (cpu)->cpu_data.hardware)
} M32R2F_CPU_DATA;
/* Cover fns for register access. */