Re: [PATCH] riscv: Add option to print registers on exception

2019-12-18 Thread Rick Chen
Hi Sean > From: Sean Anderson [mailto:sean...@gmail.com] > Sent: Wednesday, December 18, 2019 10:32 AM > To: u-boot@lists.denx.de > Cc: Rick Jian-Zhi Chen(陳建志) > Subject: [PATCH] riscv: Add option to print registers on exception > > When debugging, it can be helpful to see m

[PATCH] riscv: Add option to print registers on exception

2019-12-18 Thread Sean Anderson
When debugging, it can be helpful to see more information about an unhandled exception. This patch adds an option to view the registers at the time of the trap, similar to the linux output on a kernel panic. Signed-off-by: Sean Anderson --- arch/riscv/Kconfig | 3 +++ arch/riscv/cpu/mt