diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-03-22 19:26:42 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-06-10 07:03:42 -0700 |
commit | dad1c8ecc707a0f3fe6963b364477ce0a92670fa (patch) | |
tree | ab14bb9e590d7efdec204f5c237b3b32c1adad2f /target/sh4/cpu.h | |
parent | dc79e928698567b14e6638c4c9f1e43dc386f1d8 (diff) | |
download | 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 'target/sh4/cpu.h')
-rw-r--r-- | target/sh4/cpu.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/target/sh4/cpu.h b/target/sh4/cpu.h index 8b17e6d63e..089eea261c 100644 --- a/target/sh4/cpu.h +++ b/target/sh4/cpu.h @@ -207,11 +207,6 @@ struct SuperHCPU { CPUSH4State env; }; -static inline SuperHCPU *sh_env_get_cpu(CPUSH4State *env) -{ - return container_of(env, SuperHCPU, env); -} - #define ENV_OFFSET offsetof(SuperHCPU, env) void superh_cpu_do_interrupt(CPUState *cpu); |