[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/7] tests/tcg/xtensa: fix build for cores without windowed regis
From: |
Max Filippov |
Subject: |
[PATCH 1/7] tests/tcg/xtensa: fix build for cores without windowed registers |
Date: |
Wed, 27 Apr 2022 10:21:34 -0700 |
Don't try to initialize windowbase/windowstart in crt.S if they don't
exist.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
tests/tcg/xtensa/crt.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/tcg/xtensa/crt.S b/tests/tcg/xtensa/crt.S
index d9846acace90..909872cd3853 100644
--- a/tests/tcg/xtensa/crt.S
+++ b/tests/tcg/xtensa/crt.S
@@ -8,10 +8,12 @@
.text
.global _start
_start:
+#if XCHAL_HAVE_WINDOWED
movi a2, 1
wsr a2, windowstart
movi a2, 0
wsr a2, windowbase
+#endif
movi a1, _fstack
movi a2, 0x4000f
wsr a2, ps
--
2.30.2
- [PATCH 0/7] tests/tcg/xtensa: test fixes and improvements, Max Filippov, 2022/04/27
- [PATCH 1/7] tests/tcg/xtensa: fix build for cores without windowed registers,
Max Filippov <=
- [PATCH 5/7] tests/tcg/xtensa: enable autorefill phys_mem tests for MMUv3, Max Filippov, 2022/04/27
- [PATCH 4/7] tests/tcg/xtensa: remove dependency on the loop option, Max Filippov, 2022/04/27
- [PATCH 3/7] tests/tcg/xtensa: fix watchpoint test, Max Filippov, 2022/04/27
- [PATCH 2/7] tests/tcg/xtensa: restore vecbase SR after test, Max Filippov, 2022/04/27
- [PATCH 7/7] tests/tcg/xtensa: fix vectors and checks in timer test, Max Filippov, 2022/04/27
- [PATCH 6/7] tests/tcg/xtensa: enable mmu tests for MMUv3, Max Filippov, 2022/04/27