diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-03-22 19:07:57 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-06-10 07:03:42 -0700 |
commit | db70b31144d28a40838f8916a7c02adcdf5d8dcd (patch) | |
tree | 2a6094b53b8078b9550fca465b3560e170a1c7e1 /target/ppc/cpu.h | |
parent | 5ee2b02e926ba12946c2ce3fc6ed9913e7c94859 (diff) |
target/ppc: Use env_cpu, env_archcpu
Cleanup in the boilerplate that each target must define.
Replace ppc_env_get_cpu with env_archcpu. The combination
CPU(ppc_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/ppc/cpu.h')
-rw-r--r-- | target/ppc/cpu.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index ec92a8e7af..73ef868a7b 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -1203,11 +1203,6 @@ struct PowerPCCPU { int32_t mig_slb_nr; }; -static inline PowerPCCPU *ppc_env_get_cpu(CPUPPCState *env) -{ - return container_of(env, PowerPCCPU, env); -} - #define ENV_OFFSET offsetof(PowerPCCPU, env) PowerPCCPUClass *ppc_cpu_class_by_pvr(uint32_t pvr); @@ -2450,7 +2445,7 @@ static inline int booke206_tlbm_to_tlbn(CPUPPCState *env, ppcmas_tlb_t *tlbm) } } - cpu_abort(CPU(ppc_env_get_cpu(env)), "Unknown TLBe: %d\n", id); + cpu_abort(env_cpu(env), "Unknown TLBe: %d\n", id); return 0; } |