Commit 8c9ab55c authored by Max Filippov's avatar Max Filippov

xtensa: add missing XCHAL_HAVE_WINDOWED check

Add missing preprocessor conditions to secondary reset vector code.

Fixes: 09af39f6 ("xtensa: use register window specific opcodes only when present")
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 5b835d4c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment