armv7m: Simpler and faster exception start
commita25dc805e2e63a55029e787a52335e12dabf07dc
authorMichael Davidsaver <mdavidsaver@gmail.com>
Tue, 28 Feb 2017 12:08:18 +0000 (28 12:08 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 12:08:18 +0000 (28 12:08 +0000)
tree673e21844680308089a21a059c92a595f5d1f2b1
parenta5d8235545e98c1ce02560d5f4f57552d937efe9
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>
target/arm/helper.c