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>
This commit is contained in:
Max Filippov 2022-04-24 08:31:29 -07:00
parent c6f3f334d1
commit b9400b1fba

View File

@ -8,10 +8,12 @@
.text .text
.global _start .global _start
_start: _start:
#if XCHAL_HAVE_WINDOWED
movi a2, 1 movi a2, 1
wsr a2, windowstart wsr a2, windowstart
movi a2, 0 movi a2, 0
wsr a2, windowbase wsr a2, windowbase
#endif
movi a1, _fstack movi a1, _fstack
movi a2, 0x4000f movi a2, 0x4000f
wsr a2, ps wsr a2, ps