summary refs log tree commit diff stats
path: root/target-openrisc/exception_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-openrisc/exception_helper.c')
-rw-r--r--target-openrisc/exception_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-openrisc/exception_helper.c b/target-openrisc/exception_helper.c
index dab4148151..0c53b7755b 100644
--- a/target-openrisc/exception_helper.c
+++ b/target-openrisc/exception_helper.c
@@ -23,7 +23,7 @@
 
 void HELPER(exception)(CPUOpenRISCState *env, uint32_t excp)
 {
-    OpenRISCCPU *cpu = OPENRISC_CPU(ENV_GET_CPU(env));
+    OpenRISCCPU *cpu = openrisc_env_get_cpu(env);
 
     raise_exception(cpu, excp);
 }