OSDN Git Service

MIPS: Make check condition for SDBBP consistent with EJTAG spec
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 9 Feb 2021 05:05:25 +0000 (13:05 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 11 Feb 2021 10:04:31 +0000 (11:04 +0100)
commitee54d379fc9c490797aa71d25d0320b5af5924a1
treedec1f2d42a36d1205e41e31b687c629ac0cc71a5
parente66ef72d269105cee2ae9c8fa0442d7a9857324f
MIPS: Make check condition for SDBBP consistent with EJTAG spec

According to MIPS EJTAG Specification [1], a Debug Breakpoint
exception occurs when an SDBBP instruction is executed, the
CP0_DEBUG bit DBp indicates that a Debug Breakpoint exception
occurred.

When I read the original code, it looks a little confusing
at first glance, just check bit DBp for SDBBP to make the
code more readable, it will be much easier to understand.

[1] http://www.t-es-t.hu/download/mips/md00047f.pdf

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/genex.S