]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: probes: Handle probes on hinted conditional branch instructions
authorVladimir Murzin <vladimir.murzin@arm.com>
Fri, 15 May 2026 13:37:29 +0000 (14:37 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 19 May 2026 13:54:08 +0000 (14:54 +0100)
commit2ccd8ff980b50e842481bae71102fa3883fc4377
treec7d371c330a17d3e5bb441e8a71bb4d0bc04b94f
parent6ccbb613b42a1f1ba7bfd547a148f644a902a25c
arm64: probes: Handle probes on hinted conditional branch instructions

BC.cond instructions introduced by FEAT_HBC cannot be executed
out-of-line, like other branch instructions. However, they can be
simulated in the same way as B.cond instructions.

Extend the B.cond decoder mask to match BC.cond instructions as well,
and handle them using the existing B.cond simulation path.

Fixes: 7f86d128e437 ("arm64: add HWCAP for FEAT_HBC (hinted conditional branches)")
Cc: <stable@vger.kernel.org>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/insn.h