diff options
author | Peter Maydell | 2018-08-14 18:17:21 +0200 |
---|---|---|
committer | Peter Maydell | 2018-08-14 18:17:21 +0200 |
commit | b8109608bc6f3337298d44ac4369bf0bc8c3a1e4 (patch) | |
tree | 26564f74554469d4910cdc15ca407110764236c8 /device-hotplug.c | |
parent | target/arm: Improve exception-taken logging (diff) | |
download | qemu-b8109608bc6f3337298d44ac4369bf0bc8c3a1e4.tar.gz qemu-b8109608bc6f3337298d44ac4369bf0bc8c3a1e4.tar.xz qemu-b8109608bc6f3337298d44ac4369bf0bc8c3a1e4.zip |
target/arm: Initialize exc_secure correctly in do_v7m_exception_exit()
In do_v7m_exception_exit(), we use the exc_secure variable to track
whether the exception we're returning from is secure or non-secure.
Unfortunately the statement initializing this was accidentally
inside an "if (env->v7m.exception != ARMV7M_EXCP_NMI)" conditional,
which meant that we were using the wrong value for NMI handlers.
Move the initialization out to the right place.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180720145647.8810-3-peter.maydell@linaro.org
Diffstat (limited to 'device-hotplug.c')
0 files changed, 0 insertions, 0 deletions