Skip to contentSkip to conversation

xtensa: add missing XCHAL_HAVE_WINDOWED check

PATCH New Max Filippov 1 participant 1 message Mar 9, 2022 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore

Max Filippov

author maintainer
#0 lore raw

PATCH 1/1 xtensa: add missing XCHAL_HAVE_WINDOWED check

Add missing preprocessor conditions to secondary reset vector code.

Fixes 09af39f649da ("xtensa: use register window specific opcodes only when present")
---
 arch/xtensa/kernel/mxhead.S | 2 ++
 1 file changed, 2 insertions(+)
arch/xtensa/kernel/mxhead.S +2 -0
index 9f3843742726..b702c0908b1f 100644
@@ -37,11 +37,13 @@ _SetupOCD:
 	 * xt-gdb to single step via DEBUG exceptions received directly
 	 * by ocd.
 	 */
+#if XCHAL_HAVE_WINDOWED
 	movi	a1, 1
 	movi	a0, 0
 	wsr	a1, windowstart
 	wsr	a0, windowbase
 	rsync
+#endif
 
 	movi	a1, LOCKLEVEL
 	wsr	a1, ps
Signature · 1 line
2.30.2