tests/tcg/xtensa: add test for OOB TLB reads
PATCH 1/1 tests/tcg/xtensa: add test for OOB TLB reads
Add a test reading *TLB ways 0..15.
Signed-off-by Max Filippov <[email protected]>
--- tests/tcg/xtensa/test_mmu.S | 11 +++++++++++ 1 file changed, 11 insertions(+)
tests/tcg/xtensa/test_mmu.S +11 -0
@@ -43,6 +43,17 @@ test_suite mmu #endif .endm +test tlb_read_ways + movi a2, 0 +1: + ritlb0 a3, a2 + ritlb1 a3, a2 + rdtlb0 a3, a2 + rdtlb1 a3, a2 + addi a2, a2, 1 + bltui a2, 16, 1b +test_end + test tlb_group movi a2, 0x04000002 /* PPN */ movi a3, BASE + 0x01200004 /* VPN */
Signature · 1 line
2.39.2