aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2011-08-31 11:26:56 +0000
committerAlexander Graf <agraf@suse.de>2011-10-06 09:48:04 +0200
commit93dd5e852c043f7b86595e1bfa0b4f9a39a6acfb (patch)
tree614164ded0983bd41547dddb8467454a877ccb05 /hw
parenta54fc0800e420df862acf089e638e0fa2d8c3585 (diff)
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/ppce500_mpc8544ds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
index b86a008c9c..61151d886c 100644
--- a/hw/ppce500_mpc8544ds.c
+++ b/hw/ppce500_mpc8544ds.c
@@ -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)