tests: coredump: Add exception for cva6

The nullpointer address (0x0) is mapped to the debug module in cva6,
making it a valid address.
Thus, in the coredump test, trigger an exception using k_panic()
instead.

Signed-off-by: Eric Ackermann <eric.ackermann@cispa.de>
This commit is contained in:
Eric Ackermann 2025-04-16 12:34:06 +02:00 committed by Benjamin Cabé
commit f9331854c8

View file

@ -40,7 +40,8 @@ __no_optimization void func_3(uint32_t *addr)
defined(CONFIG_BOARD_QEMU_XTENSA) || \
defined(CONFIG_BOARD_RISCV32_VIRTUAL) || \
defined(CONFIG_SOC_FAMILY_INTEL_ISH) || \
defined(CONFIG_SOC_FAMILY_INTEL_ADSP)
defined(CONFIG_SOC_FAMILY_INTEL_ADSP) || \
defined(CONFIG_SOC_FAMILY_OPENHWGROUP_CVA6)
ARG_UNUSED(addr);
/* Call k_panic() directly so Renode doesn't pause execution.
* Needed on ADSP as well, since null pointer derefence doesn't