summary refs log tree commit diff stats
path: root/linux-user/mips/cpu_loop.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-12-29 13:39:25 -0800
committerRichard Henderson <richard.henderson@linaro.org>2021-12-30 21:40:47 -0800
commit9f54dc1ce69045f1a5f9f2339b81274838901a3f (patch)
tree3209e22f146e9bd8a57032b9058b2983ddd16388 /linux-user/mips/cpu_loop.c
parent909c476d991185720a15c36fa7fe9159ccb06ab2 (diff)
downloadfocaccia-qemu-9f54dc1ce69045f1a5f9f2339b81274838901a3f.tar.gz
focaccia-qemu-9f54dc1ce69045f1a5f9f2339b81274838901a3f.zip
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>
Diffstat (limited to 'linux-user/mips/cpu_loop.c')
0 files changed, 0 insertions, 0 deletions