hw/intc/armv7m_nvic: Don't enable ARMV7M_EXCP_DEBUG from reset
commita03ffaefce5dbb455ee1bc7c7709faf377dfbd45
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 7 May 2019 11:55:03 +0000 (7 12:55 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 7 May 2019 11:55:03 +0000 (7 12:55 +0100)
tree1a5c391572bc5ee823f3cac4cad37ffcd424b7ab
parent339327b6d4a2830cba230c6be7a17a4a2fc3d546
hw/intc/armv7m_nvic: Don't enable ARMV7M_EXCP_DEBUG from reset

The M-profile architecture specifies that the DebugMonitor exception
should be initially disabled, not enabled. It should be controlled
by the DEMCR register's MON_EN bit, but we don't implement that
register yet (like most of the debug architecture for M-profile).

Note that BKPT instructions will still work, because they
will be escalated to HardFault.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190430131439.25251-4-peter.maydell@linaro.org
hw/intc/armv7m_nvic.c