summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMax Filippov2022-04-24 17:31:29 +0200
committerMax Filippov2022-05-07 00:27:40 +0200
commitb9400b1fbaeb69af3e3052721fad79b2e46efc65 (patch)
treef2d07d9d7fb26892c71c68846dc04cedd7340e2a /tests
parenthw/xtensa: fix reset value of MIROUT register of MX PIC (diff)
downloadqemu-b9400b1fbaeb69af3e3052721fad79b2e46efc65.tar.gz
qemu-b9400b1fbaeb69af3e3052721fad79b2e46efc65.tar.xz
qemu-b9400b1fbaeb69af3e3052721fad79b2e46efc65.zip
tests/tcg/xtensa: fix build for cores without windowed registers
Don't try to initialize windowbase/windowstart in crt.S if they don't exist. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/tcg/xtensa/crt.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tcg/xtensa/crt.S b/tests/tcg/xtensa/crt.S
index d9846acace..909872cd38 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