boards: arm: mps3_an547: Disable null pointer detection for QEMU

This commit disables the Cortex-M null pointer detection feature for
the QEMU mps3_an547 targets because QEMU permits bus access to the
unmapped 0x0-0x400 region used by the MPU-based null pointer detection
feature.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2021-08-15 00:35:43 +09:00 committed by Christopher Friedt
commit ad6835fab1

View file

@ -6,6 +6,14 @@ if BOARD_MPS3_AN547
config BOARD config BOARD
default "mps3_an547" default "mps3_an547"
# MPU-based null-pointer dereferencing detection cannot
# be applied as the (0x0 - 0x400) is unmapped but QEMU
# will still permit bus access.
choice NULL_POINTER_EXCEPTION_DETECTION
bool
default NULL_POINTER_EXCEPTION_DETECTION_NONE if QEMU_TARGET
endchoice
if GPIO if GPIO
config GPIO_CMSDK_AHB config GPIO_CMSDK_AHB