From: Max Filippov Date: Sun, 24 Apr 2022 15:33:16 +0000 (-0700) Subject: tests/tcg/xtensa: restore vecbase SR after test X-Git-Tag: v7.1.0-rc0~112^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8164f14bb98dce986b755af4b3dfee3eb99c95a1;p=thirdparty%2Fqemu.git tests/tcg/xtensa: restore vecbase SR after test 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 --- diff --git a/tests/tcg/xtensa/test_sr.S b/tests/tcg/xtensa/test_sr.S index b1a91a0637e..34441c7afff 100644 --- a/tests/tcg/xtensa/test_sr.S +++ b/tests/tcg/xtensa/test_sr.S @@ -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