From: Max Filippov <jcmvbkbc@gmail.com>
To: qemu-devel@nongnu.org
Cc: Max Filippov <jcmvbkbc@gmail.com>
Subject: [PATCH] tests/tcg/xtensa: add test for OOB TLB reads
Date: Fri, 15 Dec 2023 04:07:51 -0800 [thread overview]
Message-ID: <20231215120751.545636-1-jcmvbkbc@gmail.com> (raw)
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
reply other threads:[~2023-12-15 12:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231215120751.545636-1-jcmvbkbc@gmail.com \
--to=jcmvbkbc@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).