debug: no UNALIGNED_ACCESS_SUPPORTED for cortex M0 or M0plus

Set the UNALIGNED_ACCESS_SUPPORTED only for MCU with cortex M
that are neither M0 nor M0plus
Cortex M0 or M0plus mcus do not support un-aligned address access

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2024-06-26 16:17:02 +02:00 committed by Anas Nashif
parent 2abd982040
commit 9e03abb8cb

View File

@ -6,7 +6,9 @@
#include <zephyr/debug/mipi_stp_decoder.h>
#include <string.h>
#if defined(CONFIG_CPU_CORTEX_M) && !defined(CONFIG_CPU_CORTEX_M0)
#if defined(CONFIG_CPU_CORTEX_M) && \
!defined(CONFIG_CPU_CORTEX_M0) && \
!defined(CONFIG_CPU_CORTEX_M0PLUS)
#define UNALIGNED_ACCESS_SUPPORTED 1
#else
#define UNALIGNED_ACCESS_SUPPORTED 0