summaryrefslogtreecommitdiffstats
path: root/tests/tcg/ppc64le/Makefile.target
diff options
context:
space:
mode:
authorMatheus Ferst2021-10-15 00:32:31 +0200
committerDavid Gibson2021-10-21 02:42:47 +0200
commit66c6b40aba13807506f20c7522f4930c9ffc76ce (patch)
treed1658e09ad6da6d61eebcbe4c2a323bf4fcf2c68 /tests/tcg/ppc64le/Makefile.target
parenttests/acceptance: Add tests for the ppc405 boards (diff)
downloadqemu-66c6b40aba13807506f20c7522f4930c9ffc76ce.tar.gz
qemu-66c6b40aba13807506f20c7522f4930c9ffc76ce.tar.xz
qemu-66c6b40aba13807506f20c7522f4930c9ffc76ce.zip
linux-user/ppc: Fix XER access in save/restore_user_regs
We should use cpu_read_xer/cpu_write_xer to save/restore the complete register since some of its bits are in other fields of CPUPPCState. A test is added to prevent future regressions. Fixes: da91a00f191f ("target-ppc: Split out SO, OV, CA fields from XER") Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br> Message-Id: <20211014223234.127012-2-matheus.ferst@eldorado.org.br> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/tcg/ppc64le/Makefile.target')
-rw-r--r--tests/tcg/ppc64le/Makefile.target2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tcg/ppc64le/Makefile.target b/tests/tcg/ppc64le/Makefile.target
index c0c14ffbad..5e65b1590d 100644
--- a/tests/tcg/ppc64le/Makefile.target
+++ b/tests/tcg/ppc64le/Makefile.target
@@ -22,4 +22,6 @@ run-plugin-byte_reverse-with-%:
$(call skip-test, "RUN of byte_reverse ($*)", "not built")
endif
+PPC64LE_TESTS += signal_save_restore_xer
+
TESTS += $(PPC64LE_TESTS)