diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-03-22 19:39:59 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-06-10 07:03:42 -0700 |
commit | 06eb2e29420deff180e777284fe6f99037e912cc (patch) | |
tree | f26e308658dcfa99cfd1f5650851813707f1f02e /target/tricore/cpu.h | |
parent | 06887771bda2a297f2fb669522166a97d67e2ad9 (diff) |
target/tricore: Use env_cpu
Cleanup in the boilerplate that each target must define.
Replace tricore_env_get_cpu with env_archcpu. The combination
CPU(tricore_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/tricore/cpu.h')
-rw-r--r-- | target/tricore/cpu.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/target/tricore/cpu.h b/target/tricore/cpu.h index 4a2a955cc5..6a40d37362 100644 --- a/target/tricore/cpu.h +++ b/target/tricore/cpu.h @@ -208,11 +208,6 @@ struct TriCoreCPU { CPUTriCoreState env; }; -static inline TriCoreCPU *tricore_env_get_cpu(CPUTriCoreState *env) -{ - return TRICORE_CPU(container_of(env, TriCoreCPU, env)); -} - #define ENV_OFFSET offsetof(TriCoreCPU, env) hwaddr tricore_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr); |