Skip to content

Commit

Permalink
boards: qemu_xtensa: coredump: Enable coredump
Browse files Browse the repository at this point in the history
Enable coredump on qemu_xtensa and qemu_xtensa_mmu.

Signed-off-by: Dmitrii Golovanov <[email protected]>
  • Loading branch information
golowanow authored and MaureenHelm committed Nov 20, 2023
1 parent 5ed8bb7 commit 23324fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/xtensa/qemu_xtensa/Kconfig.board
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ config BOARD_QEMU_XTENSA
bool "Xtensa emulation using QEMU"
depends on SOC_XTENSA_DC233C
select QEMU_TARGET
select ARCH_SUPPORTS_COREDUMP

config BOARD_QEMU_XTENSA_MMU
bool "Xtensa emulation using QEMU with MMU"
depends on SOC_XTENSA_DC233C
select QEMU_TARGET
select ARCH_SUPPORTS_COREDUMP
select XTENSA_MMU
1 change: 1 addition & 0 deletions tests/subsys/debug/coredump/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ void func_3(uint32_t *addr)
defined(CONFIG_BOARD_HIFIVE1) || \
defined(CONFIG_BOARD_LONGAN_NANO) || \
defined(CONFIG_BOARD_LONGAN_NANO_LITE) || \
defined(CONFIG_BOARD_QEMU_XTENSA) || \
defined(CONFIG_SOC_FAMILY_INTEL_ADSP)
ARG_UNUSED(addr);
/* Call k_panic() directly so Renode doesn't pause execution.
Expand Down
2 changes: 2 additions & 0 deletions tests/subsys/debug/coredump/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ tests:
filter: CONFIG_ARCH_SUPPORTS_COREDUMP
arch_allow:
- xtensa
integration_platforms:
- qemu_xtensa
harness: console
harness_config:
type: multi_line
Expand Down

0 comments on commit 23324fc

Please sign in to comment.