]> git.proxmox.com Git - mirror_qemu.git/commit
accel/tcg/user-exec: Don't parse aarch64 insns to test for read vs write
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 29 Jan 2019 11:46:04 +0000 (11:46 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 29 Jan 2019 11:46:04 +0000 (11:46 +0000)
commitf454a54f3bf95920d236ad893344141085db061a
tree041a9d9d82141804b74a61088960dfc37452a640
parentea7a5330b79523540ba776c529b09dc8cf3fa0c5
accel/tcg/user-exec: Don't parse aarch64 insns to test for read vs write

In cpu_signal_handler() for aarch64 hosts, currently we parse
the faulting instruction to see if it is a load or a store.
Since the 3.16 kernel (~2014), the kernel has provided us with
the syndrome register for a fault, which includes the WnR bit.
Use this instead if it is present, only falling back to
instruction parsing if not.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190108180014.32386-1-peter.maydell@linaro.org
accel/tcg/user-exec.c