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 /hw/ppc/ppc_booke.c | |
parent | 5ee2b02e926ba12946c2ce3fc6ed9913e7c94859 (diff) | |
download | qemu-db70b31144d28a40838f8916a7c02adcdf5d8dcd.zip qemu-db70b31144d28a40838f8916a7c02adcdf5d8dcd.tar.gz qemu-db70b31144d28a40838f8916a7c02adcdf5d8dcd.tar.bz2 |
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 'hw/ppc/ppc_booke.c')
-rw-r--r-- | hw/ppc/ppc_booke.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ppc/ppc_booke.c b/hw/ppc/ppc_booke.c index 4f11e00..323413e 100644 --- a/hw/ppc/ppc_booke.c +++ b/hw/ppc/ppc_booke.c @@ -249,7 +249,7 @@ static void booke_wdt_cb(void *opaque) void store_booke_tsr(CPUPPCState *env, target_ulong val) { - PowerPCCPU *cpu = ppc_env_get_cpu(env); + PowerPCCPU *cpu = env_archcpu(env); ppc_tb_t *tb_env = env->tb_env; booke_timer_t *booke_timer = tb_env->opaque; @@ -277,7 +277,7 @@ void store_booke_tsr(CPUPPCState *env, target_ulong val) void store_booke_tcr(CPUPPCState *env, target_ulong val) { - PowerPCCPU *cpu = ppc_env_get_cpu(env); + PowerPCCPU *cpu = env_archcpu(env); ppc_tb_t *tb_env = env->tb_env; booke_timer_t *booke_timer = tb_env->opaque; |