diff mbox series

[2/2] riscv: show registers in crash dumps by default

Message ID 20240811110104.143714-3-heinrich.schuchardt@canonical.com
State Accepted
Delegated to: Andes
Headers show
Series riscv: show registers in crash dumps by default | expand

Commit Message

Heinrich Schuchardt Aug. 11, 2024, 11:01 a.m. UTC
If an exception occurs in main U-Boot, show the registers. This makes
analyzing crashes especially in external applications easier.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Leo Liang Aug. 13, 2024, 3:26 a.m. UTC | #1
On Sun, Aug 11, 2024 at 01:01:04PM +0200, Heinrich Schuchardt wrote:
> [EXTERNAL MAIL]
> 
> If an exception occurs in main U-Boot, show the registers. This makes
> analyzing crashes especially in external applications easier.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  arch/riscv/Kconfig | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
diff mbox series

Patch

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 66cd512b23f..fc79d4902de 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -437,6 +437,7 @@  config AVAILABLE_HARTS
 	  If disable this, it will send IPI by CPUs node numbers of device tree.
 
 config SHOW_REGS
+	default y
 	bool "Show registers on unhandled exception"
 	help
 	  By default only the program counter and the return address register