sim-card
/
qemu
Archived
10
0
Fork 0

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 <jcmvbkbc@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Max Filippov 2011-11-22 11:59:16 +04:00 committed by Blue Swirl
parent 40897c9c16
commit 0fdd2e1d06
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ static void reset_tlb_mmu_ways56(CPUState *env,
entry[6][ei].vaddr = ei << 29; entry[6][ei].vaddr = ei << 29;
entry[6][ei].paddr = ei << 29; entry[6][ei].paddr = ei << 29;
entry[6][ei].asid = 1; entry[6][ei].asid = 1;
entry[6][ei].attr = 2; entry[6][ei].attr = 3;
} }
} }
} }

View File

@ -256,7 +256,7 @@
.way_size = { \ .way_size = { \
(refill_way_size), (refill_way_size), \ (refill_way_size), (refill_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), \ .varway56 = (way56), \
.nrefillentries = (refill_way_size) * 4, \ .nrefillentries = (refill_way_size) * 4, \