From: Max Filippov Date: Sun, 24 Apr 2022 15:31:29 +0000 (-0700) Subject: tests/tcg/xtensa: fix build for cores without windowed registers X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b9400b1fbaeb69af3e3052721fad79b2e46efc65;p=qemu.git 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 --- 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