[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/7] tests/tcg/xtensa: enable autorefill phys_mem tests for MMUv3
From: |
Max Filippov |
Subject: |
[PATCH 5/7] tests/tcg/xtensa: enable autorefill phys_mem tests for MMUv3 |
Date: |
Wed, 27 Apr 2022 10:21:38 -0700 |
Autorefill tests in the phys_mem test suite are disabled for cores that
have spanning TLB way, i.e. for all MMUv3 cores. Instead of disabling it
invalidate TLB mappings for entries that conflict with the test.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
tests/tcg/xtensa/test_phys_mem.S | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/tests/tcg/xtensa/test_phys_mem.S b/tests/tcg/xtensa/test_phys_mem.S
index 9bb3ee3866ed..f935a702945c 100644
--- a/tests/tcg/xtensa/test_phys_mem.S
+++ b/tests/tcg/xtensa/test_phys_mem.S
@@ -2,7 +2,7 @@
test_suite phys_mem
-#if XCHAL_HAVE_PTP_MMU && !XCHAL_HAVE_SPANNING_WAY
+#if XCHAL_HAVE_PTP_MMU
.purgem test_init
@@ -13,6 +13,14 @@ test_suite phys_mem
witlb a2, a3
movi a2, 0xc0000000
wsr a2, ptevaddr
+#if XCHAL_HAVE_SPANNING_WAY
+ movi a2, 0xc0000000 | XCHAL_SPANNING_WAY
+ idtlb a2
+ iitlb a2
+ movi a2, 0x20000000 | XCHAL_SPANNING_WAY
+ idtlb a2
+ iitlb a2
+#endif
.endm
test inst_fetch_get_pte_no_phys
--
2.30.2
- [PATCH 0/7] tests/tcg/xtensa: test fixes and improvements, Max Filippov, 2022/04/27
- [PATCH 1/7] tests/tcg/xtensa: fix build for cores without windowed registers, Max Filippov, 2022/04/27
- [PATCH 5/7] tests/tcg/xtensa: enable autorefill phys_mem tests for MMUv3,
Max Filippov <=
- [PATCH 4/7] tests/tcg/xtensa: remove dependency on the loop option, Max Filippov, 2022/04/27
- [PATCH 3/7] tests/tcg/xtensa: fix watchpoint test, Max Filippov, 2022/04/27
- [PATCH 2/7] tests/tcg/xtensa: restore vecbase SR after test, Max Filippov, 2022/04/27
- [PATCH 7/7] tests/tcg/xtensa: fix vectors and checks in timer test, Max Filippov, 2022/04/27
- [PATCH 6/7] tests/tcg/xtensa: enable mmu tests for MMUv3, Max Filippov, 2022/04/27