aboutsummaryrefslogtreecommitdiff
path: root/target/tilegx/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/tilegx/helper.c')
-rw-r--r--target/tilegx/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/tilegx/helper.c b/target/tilegx/helper.c
index 4964bb9111..a57a679825 100644
--- a/target/tilegx/helper.c
+++ b/target/tilegx/helper.c
@@ -28,7 +28,7 @@
void helper_exception(CPUTLGState *env, uint32_t excp)
{
- CPUState *cs = CPU(tilegx_env_get_cpu(env));
+ CPUState *cs = env_cpu(env);
cs->exception_index = excp;
cpu_loop_exit(cs);