summaryrefslogtreecommitdiffstats
path: root/linux-user/riscv/cpu_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/riscv/cpu_loop.c')
-rw-r--r--linux-user/riscv/cpu_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/riscv/cpu_loop.c b/linux-user/riscv/cpu_loop.c
index 31700f75d0..c1134597fd 100644
--- a/linux-user/riscv/cpu_loop.c
+++ b/linux-user/riscv/cpu_loop.c
@@ -25,7 +25,7 @@
void cpu_loop(CPURISCVState *env)
{
- CPUState *cs = CPU(riscv_env_get_cpu(env));
+ CPUState *cs = env_cpu(env);
int trapnr, signum, sigcode;
target_ulong sigaddr;
target_ulong ret;