]> git.proxmox.com Git - mirror_qemu.git/commit
target/hppa: Fix atomic_store_3 for STBY
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 29 Dec 2021 21:39:25 +0000 (13:39 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 31 Dec 2021 05:40:47 +0000 (21:40 -0800)
commit9f54dc1ce69045f1a5f9f2339b81274838901a3f
tree3209e22f146e9bd8a57032b9058b2983ddd16388
parent909c476d991185720a15c36fa7fe9159ccb06ab2
target/hppa: Fix atomic_store_3 for STBY

The parallel version of STBY did not take host endianness into
account, and also computed the incorrect address for STBY_E.

Bswap twice to handle the merge and store.  Compute mask inside
the function rather than as a parameter.  Force align the address,
rather than subtracting one.

Generalize the function to system mode by using probe_access().

Cc: qemu-stable@nongnu.org
Tested-by: Helge Deller <deller@gmx.de>
Reported-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/op_helper.c
tests/tcg/hppa/Makefile.target
tests/tcg/hppa/stby.c [new file with mode: 0644]