]> git.proxmox.com Git - qemu.git/commitdiff
target-xtensa: fix MMUv3 initialization
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 22 Nov 2011 07:59:16 +0000 (11:59 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Nov 2011 09:44:34 +0000 (09:44 +0000)
- 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 <jcmvbkbc@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-xtensa/helper.c
target-xtensa/overlay_tool.h

index fc85815a633dc0568fbeb2c83b4962e5a932b4a9..2a0cb1a562f24be809662765a14a2ec84d2f778a 100644 (file)
@@ -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;
         }
     }
 }
index 9cef27d03ee03bd5d524c85b9eae46ce72b268dc..df19cc96ea3567d15e257ce790e1af402271cafd 100644 (file)
         .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, \