mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
tests/tcg/xtensa: enable autorefill phys_mem tests for MMUv3
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>
This commit is contained in:
parent
e120c8335d
commit
703cebcfac
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue