mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08:00
MIPS: Don't dump Hi & Lo regs on >= MIPSr6
MIPSr6 removed the Hi & Lo registers, so displaying their values on MIPSr6 systems is pointless. Avoid doing so. Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/21067/ Cc: linux-mips@linux-mips.org
This commit is contained in:
parent
c7adfaea4b
commit
b6d18e7704
@ -50,6 +50,7 @@
|
||||
#include <asm/fpu.h>
|
||||
#include <asm/fpu_emulator.h>
|
||||
#include <asm/idle.h>
|
||||
#include <asm/isa-rev.h>
|
||||
#include <asm/mips-cps.h>
|
||||
#include <asm/mips-r2-to-r6-emul.h>
|
||||
#include <asm/mipsregs.h>
|
||||
@ -277,8 +278,10 @@ static void __show_regs(const struct pt_regs *regs)
|
||||
#ifdef CONFIG_CPU_HAS_SMARTMIPS
|
||||
printk("Acx : %0*lx\n", field, regs->acx);
|
||||
#endif
|
||||
printk("Hi : %0*lx\n", field, regs->hi);
|
||||
printk("Lo : %0*lx\n", field, regs->lo);
|
||||
if (MIPS_ISA_REV < 6) {
|
||||
printk("Hi : %0*lx\n", field, regs->hi);
|
||||
printk("Lo : %0*lx\n", field, regs->lo);
|
||||
}
|
||||
|
||||
/*
|
||||
* Saved cp0 registers
|
||||
|
Loading…
Reference in New Issue
Block a user