diff options
author | Richard Henderson | 2019-03-23 02:41:52 +0100 |
---|---|---|
committer | Richard Henderson | 2019-06-10 16:03:42 +0200 |
commit | f8600ba22188595bca6c098ab66b9641b10bca99 (patch) | |
tree | 22e01f76f8acc6f037a4ccd27805ad773e578848 /target/moxie/cpu.h | |
parent | target/mips: Use env_cpu, env_archcpu (diff) | |
download | qemu-f8600ba22188595bca6c098ab66b9641b10bca99.tar.gz qemu-f8600ba22188595bca6c098ab66b9641b10bca99.tar.xz qemu-f8600ba22188595bca6c098ab66b9641b10bca99.zip |
target/moxie: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define.
Replace moxie_env_get_cpu with env_archcpu. The combination
CPU(moxie_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: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/moxie/cpu.h')
-rw-r--r-- | target/moxie/cpu.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/target/moxie/cpu.h b/target/moxie/cpu.h index 275fb9bfbb..b9f5635e50 100644 --- a/target/moxie/cpu.h +++ b/target/moxie/cpu.h @@ -90,11 +90,6 @@ typedef struct MoxieCPU { CPUMoxieState env; } MoxieCPU; -static inline MoxieCPU *moxie_env_get_cpu(CPUMoxieState *env) -{ - return container_of(env, MoxieCPU, env); -} - #define ENV_OFFSET offsetof(MoxieCPU, env) void moxie_cpu_do_interrupt(CPUState *cs); |