From ad6835fab10078b56be7ab49d19d3766d6f9af11 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Sun, 15 Aug 2021 00:35:43 +0900 Subject: [PATCH] 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 --- boards/arm/mps3_an547/Kconfig.defconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boards/arm/mps3_an547/Kconfig.defconfig b/boards/arm/mps3_an547/Kconfig.defconfig index 93571b1472a..52c7b6bbcaa 100644 --- a/boards/arm/mps3_an547/Kconfig.defconfig +++ b/boards/arm/mps3_an547/Kconfig.defconfig @@ -6,6 +6,14 @@ if BOARD_MPS3_AN547 config BOARD 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 config GPIO_CMSDK_AHB