diff options
author | Richard Henderson | 2019-03-23 03:11:37 +0100 |
---|---|---|
committer | Richard Henderson | 2019-06-10 16:03:42 +0200 |
commit | 3109cd98a6c0c618189b38a83a8aa29cb20acbce (patch) | |
tree | 8a99b69eb09a90435838eb41db68aa9486cd8cc6 /linux-user/riscv/cpu_loop.c | |
parent | target/ppc: Use env_cpu, env_archcpu (diff) | |
download | qemu-3109cd98a6c0c618189b38a83a8aa29cb20acbce.tar.gz qemu-3109cd98a6c0c618189b38a83a8aa29cb20acbce.tar.xz qemu-3109cd98a6c0c618189b38a83a8aa29cb20acbce.zip |
target/riscv: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define.
Replace riscv_env_get_cpu with env_archcpu. The combination
CPU(riscv_env_get_cpu) should have used ENV_GET_CPU to begin;
use env_cpu now.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/riscv/cpu_loop.c')
-rw-r--r-- | linux-user/riscv/cpu_loop.c | 2 |
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; |