accel/tcg: Fix atomic_mmu_lookup for reads
commit8c313254e61ed47a1bf4a2db714b25cdd94fbcce
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 5 May 2023 20:40:49 +0000 (5 21:40 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 11 May 2023 08:49:25 +0000 (11 09:49 +0100)
tree89bcf31e2f0da1e5a94aec4d01d8ad3dfc64aaa9
parenta0f06a6226c463137acc5c187aef2c268f389282
accel/tcg: Fix atomic_mmu_lookup for reads

A copy-paste bug had us looking at the victim cache for writes.

Cc: qemu-stable@nongnu.org
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Fixes: 08dff435e2 ("tcg: Probe the proper permissions for atomic ops")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20230505204049.352469-1-richard.henderson@linaro.org>
accel/tcg/cputlb.c