Skip to content

Commit f933185

Browse files
WorldofJARcraftkartben
authored andcommitted
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>
1 parent 51eaf02 commit f933185

File tree

1 file changed

+2
-1
lines changed
  • tests/subsys/debug/coredump/src

1 file changed

+2
-1
lines changed

tests/subsys/debug/coredump/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ __no_optimization void func_3(uint32_t *addr)
4040
defined(CONFIG_BOARD_QEMU_XTENSA) || \
4141
defined(CONFIG_BOARD_RISCV32_VIRTUAL) || \
4242
defined(CONFIG_SOC_FAMILY_INTEL_ISH) || \
43-
defined(CONFIG_SOC_FAMILY_INTEL_ADSP)
43+
defined(CONFIG_SOC_FAMILY_INTEL_ADSP) || \
44+
defined(CONFIG_SOC_FAMILY_OPENHWGROUP_CVA6)
4445
ARG_UNUSED(addr);
4546
/* Call k_panic() directly so Renode doesn't pause execution.
4647
* Needed on ADSP as well, since null pointer derefence doesn't

0 commit comments

Comments
 (0)