]> git.proxmox.com Git - mirror_qemu.git/commit
nvic: Implement v8M changes to fixed priority exceptions
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Sep 2017 18:14:00 +0000 (19:14 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2017 15:31:09 +0000 (16:31 +0100)
commit331f4bae6c514a719676d803625cfe197d81a91c
tree6985d6daf412f1570ba58bd4c5b1bcc2cb06534d
parent94a34abe32fcdc70b3ee388ccf48b6d3d1aedcfc
nvic: Implement v8M changes to fixed priority exceptions

In v7M, the fixed-priority exceptions are:
 Reset: -3
 NMI: -2
 HardFault: -1

In v8M, this changes because Secure HardFault may need
to be prioritised above NMI:
 Reset: -4
 Secure HardFault if AIRCR.BFHFNMINS == 1: -3
 NMI: -2
 Secure HardFault if AIRCR.BFHFNMINS == 0: -1
 NonSecure HardFault: -1

Make these changes, including support for changing the
priority of Secure HardFault as AIRCR.BFHFNMINS changes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1505240046-11454-14-git-send-email-peter.maydell@linaro.org
hw/intc/armv7m_nvic.c