Skip to content

Commit ae48556

Browse files
committed
arm64: insn: Add BIT(23) to {load,store}_ex's mask
JIRA: https://issues.redhat.com/browse/RHEL-78202 commit ab327cc Author: Peilin Ye <yepeilin@google.com> Date: Tue Mar 4 01:06:19 2025 +0000 arm64: insn: Add BIT(23) to {load,store}_ex's mask We are planning to add load-acquire (LDAR{,B,H}) and store-release (STLR{,B,H}) instructions to insn.{c,h}; add BIT(23) to mask of load_ex and store_ex to prevent aarch64_insn_is_{load,store}_ex() from returning false-positives for load-acquire and store-release instructions. Reference: Arm Architecture Reference Manual (ARM DDI 0487K.a, ID032224), * C6.2.228 LDXR * C6.2.165 LDAXR * C6.2.161 LDAR * C6.2.393 STXR * C6.2.360 STLXR * C6.2.353 STLR Acked-by: Xu Kuohai <xukuohai@huawei.com> Signed-off-by: Peilin Ye <yepeilin@google.com> Link: https://lore.kernel.org/r/5a4d2a52b2cc022bf86d0b572789f0b3bc3d5162.1741049567.git.yepeilin@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Gregory Bell <grbell@redhat.com>
1 parent c4ff57b commit ae48556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/include/asm/insn.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ __AARCH64_INSN_FUNCS(ldr_imm, 0x3FC00000, 0x39400000)
351351
__AARCH64_INSN_FUNCS(ldr_lit, 0xBF000000, 0x18000000)
352352
__AARCH64_INSN_FUNCS(ldrsw_lit, 0xFF000000, 0x98000000)
353353
__AARCH64_INSN_FUNCS(exclusive, 0x3F800000, 0x08000000)
354-
__AARCH64_INSN_FUNCS(load_ex, 0x3F400000, 0x08400000)
355-
__AARCH64_INSN_FUNCS(store_ex, 0x3F400000, 0x08000000)
354+
__AARCH64_INSN_FUNCS(load_ex, 0x3FC00000, 0x08400000)
355+
__AARCH64_INSN_FUNCS(store_ex, 0x3FC00000, 0x08000000)
356356
__AARCH64_INSN_FUNCS(mops, 0x3B200C00, 0x19000400)
357357
__AARCH64_INSN_FUNCS(stp, 0x7FC00000, 0x29000000)
358358
__AARCH64_INSN_FUNCS(ldp, 0x7FC00000, 0x29400000)

0 commit comments

Comments
 (0)