diff options
author | Matheus Ferst | 2021-10-15 00:32:31 +0200 |
---|---|---|
committer | David Gibson | 2021-10-21 02:42:47 +0200 |
commit | 66c6b40aba13807506f20c7522f4930c9ffc76ce (patch) | |
tree | d1658e09ad6da6d61eebcbe4c2a323bf4fcf2c68 /tests/tcg/ppc64le/Makefile.target | |
parent | tests/acceptance: Add tests for the ppc405 boards (diff) | |
download | qemu-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.target | 2 |
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) |