target-xtensa: fix MMUv3 initialization
PATCH 1/1 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 <[email protected]>
--- target-xtensa/helper.c | 2 +- target-xtensa/overlay_tool.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
target-xtensa/helper.c +1 -1
@@ -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 ; } } }
target-xtensa/overlay_tool.h +1 -1
@@ -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, \
Signature · 1 line
1.7.6.4
Blue Swirl
AppliedThanks, applied.
Quoted 40 lines · Max Filippov
- 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 <[email protected]>---
target-xtensa/helper.c | 2 +-
target-xtensa/overlay_tool.h | 2 +-2 files changed, 2 insertions(+), 2 deletions(-)target-xtensa/helper.c +1
-1@@ -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; } } }target-xtensa/overlay_tool.h +1
-2@@ -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, \ --1.7.6.4