qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

tests/tcg/xtensa: conditionalize MMU-related tests

Make MMU-related tests conditional on the presence of MMUv2 option.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

+8
+4
tests/tcg/xtensa/test_mmu.S
··· 2 2 3 3 test_suite mmu 4 4 5 + #if XCHAL_HAVE_PTP_MMU && !XCHAL_HAVE_SPANNING_WAY 6 + 5 7 .purgem test_init 6 8 7 9 .macro clean_tlb_way way, page_size, n_entries ··· 739 741 movi a3, 0x00007ffc 740 742 assert eq, a2, a3 741 743 test_end 744 + 745 + #endif 742 746 743 747 test_suite_end
+4
tests/tcg/xtensa/test_phys_mem.S
··· 2 2 3 3 test_suite phys_mem 4 4 5 + #if XCHAL_HAVE_PTP_MMU && !XCHAL_HAVE_SPANNING_WAY 6 + 5 7 .purgem test_init 6 8 7 9 .macro test_init ··· 66 68 movi a2, 24 67 69 assert eq, a2, a3 68 70 test_end 71 + 72 + #endif 69 73 70 74 test inst_fetch_no_phys 71 75 set_vector kernel, 2f