diff options
author | Michael Davidsaver <mdavidsaver@gmail.com> | 2017-02-28 12:08:18 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-02-28 12:08:18 +0000 |
commit | a25dc805e2e63a55029e787a52335e12dabf07dc (patch) | |
tree | 673e21844680308089a21a059c92a595f5d1f2b1 /hw/intc/armv7m_nvic.c | |
parent | a5d8235545e98c1ce02560d5f4f57552d937efe9 (diff) |
armv7m: Simpler and faster exception start
All the places in armv7m_cpu_do_interrupt() which pend an
exception in the NVIC are doing so for synchronous
exceptions. We know that we will always take some
exception in this case, so we can just acknowledge it
immediately, rather than returning and then immediately
being called again because the NVIC has raised its outbound
IRQ line.
Signed-off-by: Michael Davidsaver <mdavidsaver@gmail.com>
[PMM: tweaked commit message; added DEBUG to the set of
exceptions we handle immediately, since it is synchronous
when it results from the BKPT instruction]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'hw/intc/armv7m_nvic.c')
0 files changed, 0 insertions, 0 deletions