qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 4/6] target-xtensa: add overridable test_init macro


From: Max Filippov
Subject: [Qemu-devel] [PATCH 4/6] target-xtensa: add overridable test_init macro
Date: Tue, 11 Feb 2014 12:43:33 +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 <address@hidden>
---
 tests/tcg/xtensa/macros.inc | 4 ++++
 tests/tcg/xtensa/test_mmu.S | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/tcg/xtensa/macros.inc b/tests/tcg/xtensa/macros.inc
index c9be1ce..ead8528 100644
--- a/tests/tcg/xtensa/macros.inc
+++ b/tests/tcg/xtensa/macros.inc
@@ -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
diff --git a/tests/tcg/xtensa/test_mmu.S b/tests/tcg/xtensa/test_mmu.S
index 5d87fbb..4bc34e5 100644
--- a/tests/tcg/xtensa/test_mmu.S
+++ b/tests/tcg/xtensa/test_mmu.S
@@ -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
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]