target-xtensa: add overridable test_init macro
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 <jcmvbkbc@gmail.com>
This commit is contained in:
parent
e848dd4248
commit
d0fa1f0df3
@ -43,8 +43,12 @@ main:
|
|||||||
simcall
|
simcall
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
.macro test_init
|
||||||
|
.endm
|
||||||
|
|
||||||
.macro test name
|
.macro test name
|
||||||
//print test_\name
|
//print test_\name
|
||||||
|
test_init
|
||||||
test_\name:
|
test_\name:
|
||||||
.global test_\name
|
.global test_\name
|
||||||
.endm
|
.endm
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
test_suite mmu
|
test_suite mmu
|
||||||
|
|
||||||
.purgem test
|
.purgem test_init
|
||||||
|
|
||||||
.macro test name
|
.macro test_init
|
||||||
movi a2, 0x00000004
|
movi a2, 0x00000004
|
||||||
idtlb a2
|
idtlb a2
|
||||||
movi a2, 0x00100004
|
movi a2, 0x00100004
|
||||||
|
Loading…
Reference in New Issue
Block a user