Skip to content

Commit c919034

Browse files
committed
arch: riscv: stop printing symbol name at mepc
Now that the unwind starts from mepc already, the symbol name at the mepc reg is kinda redundant, so just remove it. Signed-off-by: Yong Cong Sin <[email protected]>
1 parent 9e7d51e commit c919034

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arch/riscv/core/fatal.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/debug/symtab.h>
87
#include <zephyr/kernel.h>
98
#include <zephyr/kernel_structs.h>
109
#include <kernel_internal.h>
@@ -80,14 +79,7 @@ FUNC_NORETURN void z_riscv_fatal_error_csf(unsigned int reason, const struct arc
8079
#endif /* CONFIG_RISCV_ISA_RV32E */
8180
LOG_ERR(" sp: " PR_REG, z_riscv_get_sp_before_exc(esf));
8281
LOG_ERR(" ra: " PR_REG, esf->ra);
83-
#ifndef CONFIG_SYMTAB
8482
LOG_ERR(" mepc: " PR_REG, esf->mepc);
85-
#else
86-
uint32_t offset = 0;
87-
const char *name = symtab_find_symbol_name(esf->mepc, &offset);
88-
89-
LOG_ERR(" mepc: " PR_REG " [%s+0x%x]", esf->mepc, name, offset);
90-
#endif
9183
LOG_ERR("mstatus: " PR_REG, esf->mstatus);
9284
LOG_ERR("");
9385
}

0 commit comments

Comments
 (0)