mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -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
|
@ -68,7 +68,8 @@ int ppc_hash32_handle_mmu_fault(CPUPPCState *env, target_ulong address, int rw,
|
|||
static inline target_ulong ppc_hash32_load_hpte0(CPUPPCState *env,
|
||||
hwaddr pte_offset)
|
||||
{
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
CPUState *cs = CPU(ppc_env_get_cpu(env));
|
||||
|
||||
assert(!env->external_htab); /* Not supported on 32-bit for now */
|
||||
return ldl_phys(cs->as, env->htab_base + pte_offset);
|
||||
}
|
||||
|
@ -76,7 +77,8 @@ static inline target_ulong ppc_hash32_load_hpte0(CPUPPCState *env,
|
|||
static inline target_ulong ppc_hash32_load_hpte1(CPUPPCState *env,
|
||||
hwaddr pte_offset)
|
||||
{
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
CPUState *cs = CPU(ppc_env_get_cpu(env));
|
||||
|
||||
assert(!env->external_htab); /* Not supported on 32-bit for now */
|
||||
return ldl_phys(cs->as, env->htab_base + pte_offset + HASH_PTE_SIZE_32/2);
|
||||
}
|
||||
|
@ -84,7 +86,8 @@ static inline target_ulong ppc_hash32_load_hpte1(CPUPPCState *env,
|
|||
static inline void ppc_hash32_store_hpte0(CPUPPCState *env,
|
||||
hwaddr pte_offset, target_ulong pte0)
|
||||
{
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
CPUState *cs = CPU(ppc_env_get_cpu(env));
|
||||
|
||||
assert(!env->external_htab); /* Not supported on 32-bit for now */
|
||||
stl_phys(cs->as, env->htab_base + pte_offset, pte0);
|
||||
}
|
||||
|
@ -92,7 +95,8 @@ static inline void ppc_hash32_store_hpte0(CPUPPCState *env,
|
|||
static inline void ppc_hash32_store_hpte1(CPUPPCState *env,
|
||||
hwaddr pte_offset, target_ulong pte1)
|
||||
{
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
CPUState *cs = CPU(ppc_env_get_cpu(env));
|
||||
|
||||
assert(!env->external_htab); /* Not supported on 32-bit for now */
|
||||
stl_phys(cs->as, env->htab_base + pte_offset + HASH_PTE_SIZE_32/2, pte1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue