target/arm: Log fault address for M-profile faults
commit654abaa783bcd668aab5e0455170af7c65f86a32
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Mar 2022 20:43:06 +0000 (15 20:43 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 18 Mar 2022 11:08:59 +0000 (18 11:08 +0000)
tree0ed65bb3ff59fab0ba156716971e0a61ecaa52fa
parent8cc2246caa6c3eb56b250293aea212cf91c38490
target/arm: Log fault address for M-profile faults

For M-profile, the fault address is not always exposed to the guest
in a fault register (for instance the BFAR bus fault address register
is only updated for bus faults on data accesses, not instruction
accesses).  Currently we log the address only if we're putting it
into a particular guest-visible register.  Since we always have it,
log it generically, to make logs of i-side faults a bit clearer.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20220315204306.2797684-3-peter.maydell@linaro.org
target/arm/m_helper.c