* [PATCH] tests/tcg/xtensa: add test for OOB TLB reads
@ 2023-12-15 12:07 Max Filippov
0 siblings, 0 replies; only message in thread
From: Max Filippov @ 2023-12-15 12:07 UTC (permalink / raw)
To: qemu-devel; +Cc: Max Filippov
Add a test reading *TLB ways 0..15.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
tests/tcg/xtensa/test_mmu.S | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/tests/tcg/xtensa/test_mmu.S b/tests/tcg/xtensa/test_mmu.S
index 1006c8cf77b2..94cd09563c7a 100644
--- a/tests/tcg/xtensa/test_mmu.S
+++ b/tests/tcg/xtensa/test_mmu.S
@@ -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 */
--
2.39.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-15 12:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-15 12:07 [PATCH] tests/tcg/xtensa: add test for OOB TLB reads Max Filippov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).