Skip to content

Commit

Permalink
tests/tcg/xtensa: restore vecbase SR after test
Browse files Browse the repository at this point in the history
Writing garbage into the vecbase SR results in hang in the subsequent
tests that expect to raise an exception. Restore vecbase SR to its
reset value after the test.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
  • Loading branch information
jcmvbkbc committed May 6, 2022
1 parent b9400b1 commit 8164f14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/tcg/xtensa/test_sr.S
Expand Up @@ -221,6 +221,8 @@ test_sr_mask /*scompare1*/12, 0, 0

#if XCHAL_HAVE_VECBASE
test_sr vecbase, 1
movi a2, XCHAL_VECBASE_RESET_VADDR
wsr a2, vecbase
#else
test_sr_mask /*vecbase*/231, 0, 0
#endif
Expand Down

0 comments on commit 8164f14

Please sign in to comment.