aboutsummaryrefslogtreecommitdiff
path: root/target/xtensa/xtensa-semi.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/xtensa/xtensa-semi.c')
-rw-r--r--target/xtensa/xtensa-semi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/xtensa/xtensa-semi.c b/target/xtensa/xtensa-semi.c
index 38efa3485a..8862985e56 100644
--- a/target/xtensa/xtensa-semi.c
+++ b/target/xtensa/xtensa-semi.c
@@ -197,7 +197,7 @@ void xtensa_sim_open_console(Chardev *chr)
void HELPER(simcall)(CPUXtensaState *env)
{
- CPUState *cs = CPU(xtensa_env_get_cpu(env));
+ CPUState *cs = env_cpu(env);
uint32_t *regs = env->regs;
switch (regs[2]) {