]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/helper.c
target/arm: Correct MPU trace handling of write vs execute
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 24 Jul 2017 14:33:12 +0000 (15:33 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 31 Jul 2017 12:05:04 +0000 (13:05 +0100)
commit709e4407add7acacc593cb6cdac026558c9a8fb6
treecb62a3190dfc1a0cee398a84f8c9ab3879b8dd07
parent25dd0e77898c3e10796d4cbeb35e8af5ba6ce975
target/arm: Correct MPU trace handling of write vs execute

Correct off-by-one bug in the PSMAv7 MPU tracing where it would print
a write access as "reading", an insn fetch as "writing", and a read
access as "execute".

Since we have an MMUAccessType enum now, we can make the code clearer
in the process by using that rather than the raw 0/1/2 values.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-id: 1500906792-18010-1-git-send-email-peter.maydell@linaro.org
target/arm/helper.c