Skip to content

Commit 325a38b

Browse files
xen0nchenhuacai
authored andcommitted
LoongArch: Tweak the BADV and CPUCFG.PRID lines in show_regs()
Use ISA manual names for BADV and CPUCFG.PRID lines in show_regs(), for stylistic consistency with the other lines already touched. While at it, also include current CPU's full name in show_regs() output. It may be more helpful for developers looking at the resulting dumps, because multiple distinct CPU models may share the same PRID. Not having this info available may hide problems only found on some but not all of the models sharing one specific PRID. Signed-off-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 98b90ed commit 325a38b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/loongarch/kernel/traps.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ static void __show_regs(const struct pt_regs *regs)
354354
print_estat(regs->csr_estat);
355355

356356
if (exccode >= EXCCODE_TLBL && exccode <= EXCCODE_ALE)
357-
printk("BadVA : %0*lx\n", field, regs->csr_badvaddr);
357+
printk(" BADV: %0*lx\n", field, regs->csr_badvaddr);
358358

359-
printk("PrId : %08x (%s)\n", read_cpucfg(LOONGARCH_CPUCFG0),
360-
cpu_family_string());
359+
printk(" PRID: %08x (%s, %s)\n", read_cpucfg(LOONGARCH_CPUCFG0),
360+
cpu_family_string(), cpu_full_name_string());
361361
}
362362

363363
void show_regs(struct pt_regs *regs)

0 commit comments

Comments
 (0)