]> Git Repo - qemu.git/commitdiff
target-xtensa: add overridable test_init macro
authorMax Filippov <[email protected]>
Mon, 10 Feb 2014 08:26:45 +0000 (12:26 +0400)
committerMax Filippov <[email protected]>
Mon, 24 Feb 2014 00:47:01 +0000 (04:47 +0400)
Some test suites, like MMU, need per-test initialization. Don't make them
redefine test macro, add test_init for that purpose.

Signed-off-by: Max Filippov <[email protected]>
tests/tcg/xtensa/macros.inc
tests/tcg/xtensa/test_mmu.S

index c9be1ce5163f61b26ce1d390563c8777cad4c8e3..ead8528aef1cd849e6ab42a2b7cafd515cff08dc 100644 (file)
@@ -43,8 +43,12 @@ main:
     simcall
 .endm
 
+.macro test_init
+.endm
+
 .macro test name
     //print test_\name
+    test_init
 test_\name:
 .global test_\name
 .endm
index 5d87fbb7039641d54e5d9a860f660ea4065f62b3..4bc34e55a0555ade32e2f16df64432f20bee3759 100644 (file)
@@ -2,9 +2,9 @@
 
 test_suite mmu
 
-.purgem test
+.purgem test_init
 
-.macro test name
+.macro test_init
     movi    a2, 0x00000004
     idtlb   a2
     movi    a2, 0x00100004
This page took 0.029289 seconds and 4 git commands to generate.