mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
kvm: ppc: booke206: use MMU API
Share the TLB array with KVM. This allows us to set the initial TLB both on initial boot and reset, is useful for debugging, and could eventually be used to support migration. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
a54fc0800e
commit
93dd5e852c
3 changed files with 89 additions and 0 deletions
|
@ -189,6 +189,8 @@ static void mmubooke_create_initial_mapping(CPUState *env,
|
|||
tlb->mas2 = va & TARGET_PAGE_MASK;
|
||||
tlb->mas7_3 = pa & TARGET_PAGE_MASK;
|
||||
tlb->mas7_3 |= MAS3_UR | MAS3_UW | MAS3_UX | MAS3_SR | MAS3_SW | MAS3_SX;
|
||||
|
||||
env->tlb_dirty = true;
|
||||
}
|
||||
|
||||
static void mpc8544ds_cpu_reset_sec(void *opaque)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue