mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target-ppc: Clean up ENV_GET_CPU() usage
Commitsfdfba1a298
,ab1da85791
,f606604f1c
and2c17449b30
added usages of ENV_GET_CPU() macro in target-specific code. Use ppc_env_get_cpu() instead. Cc: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
19d6ca16d9
commit
33276f1b9c
5 changed files with 17 additions and 11 deletions
|
@ -608,7 +608,7 @@ void ppc_hash64_store_hpte(CPUPPCState *env,
|
|||
target_ulong pte_index,
|
||||
target_ulong pte0, target_ulong pte1)
|
||||
{
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
CPUState *cs = CPU(ppc_env_get_cpu(env));
|
||||
|
||||
if (kvmppc_kern_htab) {
|
||||
return kvmppc_hash64_write_pte(env, pte_index, pte0, pte1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue