]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/tcg: Probe the proper permissions for atomic ops
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 13 Jun 2021 00:21:06 +0000 (17:21 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 19 Jun 2021 18:09:10 +0000 (11:09 -0700)
commit08dff435e27dc2bc3582e3f25e7cf01956dddafc
tree8baa5b3e6f75fc60c67a313b8a61e2da874553a0
parente5b4654907e9d96e1b215fa943e2f62e61676ed6
accel/tcg: Probe the proper permissions for atomic ops

We had a single ATOMIC_MMU_LOOKUP macro that probed for
read+write on all atomic ops.  This is incorrect for
plain atomic load and atomic store.

For user-only, we rely on the host page permissions.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/390
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/atomic_template.h
accel/tcg/cputlb.c
accel/tcg/user-exec.c