]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 09:16:47 +0000 (11:16 +0200)
commite0aefa8f4612dd376661190758a68cd1fca1dec7
tree8492038af9f12c0f1e5eb2a9fa2a0836ce522908
parent953138ff0ff69abc980c9c231a43787d998a84d3
objtool/LoongArch: Mark types based on break immediate code

commit baad7830ee9a56756b3857348452fe756cb0a702 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/objtool/arch/loongarch/decode.c