tests/tcg/xtensa: conditionalize MMU-related tests
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 18 Feb 2019 15:19:02 +0000 (07:19 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 28 Feb 2019 12:43:23 +0000 (04:43 -0800)
Make MMU-related tests conditional on the presence of MMUv2 option.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
tests/tcg/xtensa/test_mmu.S
tests/tcg/xtensa/test_phys_mem.S

index a15316ffb317d5c99c6eda3ffe483b1cb81acd9a..4cbd6ef4f9d831e5ade4be27bb4eef1be1eaa11c 100644 (file)
@@ -2,6 +2,8 @@
 
 test_suite mmu
 
+#if XCHAL_HAVE_PTP_MMU && !XCHAL_HAVE_SPANNING_WAY
+
 .purgem test_init
 
 .macro clean_tlb_way way, page_size, n_entries
@@ -740,4 +742,6 @@ test cross_page_tb
     assert  eq, a2, a3
 test_end
 
+#endif
+
 test_suite_end
index aae0a793a7184be65f7f5bd87b6f0c57a859b543..9bb3ee3866edcdbe15123a10b6f584d8be15056e 100644 (file)
@@ -2,6 +2,8 @@
 
 test_suite phys_mem
 
+#if XCHAL_HAVE_PTP_MMU && !XCHAL_HAVE_SPANNING_WAY
+
 .purgem test_init
 
 .macro test_init
@@ -67,6 +69,8 @@ test write_get_pte_no_phys
     assert  eq, a2, a3
 test_end
 
+#endif
+
 test inst_fetch_no_phys
     set_vector kernel, 2f