Patchwork booke:Use MMU API for creating initial mapping for secondary cpus

login
register
mail settings
Submitter Bharat Bhushan
Date March 27, 2012, 3:56 a.m.
Message ID <1332820606-4738-1-git-send-email-bharat.bhushan@freescale.com>
Download mbox | patch
Permalink /patch/148855/
State New
Headers show

Comments

Bharat Bhushan - March 27, 2012, 3:56 a.m.
Initial Mapping creation for secondary CPU in SMP was missing new MMU API.

Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>
---
 hw/ppce500_spin.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Alexander Graf - April 16, 2012, 1:28 p.m.
On 27.03.2012, at 05:56, Bharat Bhushan wrote:

> Initial Mapping creation for secondary CPU in SMP was missing new MMU API.
> 
> Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>

Thanks, applied to ppc-next.


Alex

Patch

diff --git a/hw/ppce500_spin.c b/hw/ppce500_spin.c
index 6b8a189..e8cf154 100644
--- a/hw/ppce500_spin.c
+++ b/hw/ppce500_spin.c
@@ -86,6 +86,7 @@  static void mmubooke_create_initial_mapping(CPUState *env,
     tlb->mas2 = (va & TARGET_PAGE_MASK) | MAS2_M;
     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 spin_kick(void *data)