mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user