mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
exec: Make stq_*_phys input an AddressSpace
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
41701aa4ee
commit
f606604f1c
18 changed files with 131 additions and 91 deletions
|
@ -101,20 +101,23 @@ static inline target_ulong ppc_hash64_load_hpte1(CPUPPCState *env,
|
|||
static inline void ppc_hash64_store_hpte0(CPUPPCState *env,
|
||||
hwaddr pte_offset, target_ulong pte0)
|
||||
{
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
if (env->external_htab) {
|
||||
stq_p(env->external_htab + pte_offset, pte0);
|
||||
} else {
|
||||
stq_phys(env->htab_base + pte_offset, pte0);
|
||||
stq_phys(cs->as, env->htab_base + pte_offset, pte0);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void ppc_hash64_store_hpte1(CPUPPCState *env,
|
||||
hwaddr pte_offset, target_ulong pte1)
|
||||
{
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
if (env->external_htab) {
|
||||
stq_p(env->external_htab + pte_offset + HASH_PTE_SIZE_64/2, pte1);
|
||||
} else {
|
||||
stq_phys(env->htab_base + pte_offset + HASH_PTE_SIZE_64/2, pte1);
|
||||
stq_phys(cs->as,
|
||||
env->htab_base + pte_offset + HASH_PTE_SIZE_64/2, pte1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue