From: Max Filippov Date: Tue, 22 Nov 2011 07:59:16 +0000 (+0400) Subject: target-xtensa: fix MMUv3 initialization X-Git-Tag: TizenStudio_2.0_p2.3~1923 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f9506a0441744e8cc3b0539f8e882b1d66c9129;p=sdk%2Femulator%2Fqemu.git target-xtensa: fix MMUv3 initialization - ITLB/DTLB ways 5 and 6 have 4 and 8 entries respectively; - ITLB/DTLB way 6 attr field is set to 3 on reset. Signed-off-by: Max Filippov Signed-off-by: Blue Swirl --- diff --git a/target-xtensa/helper.c b/target-xtensa/helper.c index fc85815..2a0cb1a 100644 --- a/target-xtensa/helper.c +++ b/target-xtensa/helper.c @@ -273,7 +273,7 @@ static void reset_tlb_mmu_ways56(CPUState *env, entry[6][ei].vaddr = ei << 29; entry[6][ei].paddr = ei << 29; entry[6][ei].asid = 1; - entry[6][ei].attr = 2; + entry[6][ei].attr = 3; } } } diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_tool.h index 9cef27d..df19cc9 100644 --- a/target-xtensa/overlay_tool.h +++ b/target-xtensa/overlay_tool.h @@ -256,7 +256,7 @@ .way_size = { \ (refill_way_size), (refill_way_size), \ (refill_way_size), (refill_way_size), \ - 4, 2, 2, 1, 1, 1, \ + 4, (way56) ? 4 : 2, (way56) ? 8 : 2, 1, 1, 1, \ }, \ .varway56 = (way56), \ .nrefillentries = (refill_way_size) * 4, \