summaryrefslogtreecommitdiffstats
path: root/linux-user/sh4
diff options
context:
space:
mode:
authorRichard Henderson2019-03-23 03:26:42 +0100
committerRichard Henderson2019-06-10 16:03:42 +0200
commitdad1c8ecc707a0f3fe6963b364477ce0a92670fa (patch)
treeab14bb9e590d7efdec204f5c237b3b32c1adad2f /linux-user/sh4
parenttarget/s390x: Use env_cpu, env_archcpu (diff)
downloadqemu-dad1c8ecc707a0f3fe6963b364477ce0a92670fa.tar.gz
qemu-dad1c8ecc707a0f3fe6963b364477ce0a92670fa.tar.xz
qemu-dad1c8ecc707a0f3fe6963b364477ce0a92670fa.zip
target/sh4: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define. Replace sh_env_get_cpu with env_archcpu. The combination CPU(sh_env_get_cpu) should have used ENV_GET_CPU to begin; use env_cpu now. Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/sh4')
-rw-r--r--linux-user/sh4/cpu_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/sh4/cpu_loop.c b/linux-user/sh4/cpu_loop.c
index 59cbbeda7e..add8817d86 100644
--- a/linux-user/sh4/cpu_loop.c
+++ b/linux-user/sh4/cpu_loop.c
@@ -23,7 +23,7 @@
void cpu_loop(CPUSH4State *env)
{
- CPUState *cs = CPU(sh_env_get_cpu(env));
+ CPUState *cs = env_cpu(env);
int trapnr, ret;
target_siginfo_t info;