summary refs log tree commit diff stats
path: root/target/unicore32/op_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/unicore32/op_helper.c')
-rw-r--r--target/unicore32/op_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/unicore32/op_helper.c b/target/unicore32/op_helper.c
index 797ba60dc9..eeaa78601a 100644
--- a/target/unicore32/op_helper.c
+++ b/target/unicore32/op_helper.c
@@ -19,7 +19,7 @@
 
 void HELPER(exception)(CPUUniCore32State *env, uint32_t excp)
 {
-    CPUState *cs = CPU(uc32_env_get_cpu(env));
+    CPUState *cs = env_cpu(env);
 
     cs->exception_index = excp;
     cpu_loop_exit(cs);