]> Gentwo Git Trees - linux/.git/commit
objtool/LoongArch: Mark types based on break immediate code
authorTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 18 Sep 2025 11:43:36 +0000 (19:43 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 18 Sep 2025 11:43:36 +0000 (19:43 +0800)
commitbaad7830ee9a56756b3857348452fe756cb0a702
treed163e3bdb9a4f0f2e575d5c447cc65e19bbdf5a8
parentf83ec76bf285bea5727f478a68b894f5543ca76e
objtool/LoongArch: Mark types based on break immediate code

If the break immediate code is 0, it should mark the type as
INSN_TRAP. If the break immediate code is 1, it should mark the
type as INSN_BUG.

While at it, format the code style and add the code comment for nop.

Cc: stable@vger.kernel.org
Suggested-by: WANG Rui <wangrui@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
tools/objtool/arch/loongarch/decode.c