insn.h (bd507ca2773b20f554a3e14f7aa9080e45ee399a) insn.h (07dcd9677c5d0f4735041885d3c3c348cc11b75c)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2013 Huawei Ltd.
4 * Author: Jiang Liu <liuj97@gmail.com>
5 *
6 * Copyright (C) 2014 Zi Shen Lim <zlim.lnx@gmail.com>
7 */
8#ifndef __ASM_INSN_H

--- 354 unchanged lines hidden (view full) ---

363__AARCH64_INSN_FUNCS(ret, 0xFFFFFC1F, 0xD65F0000)
364__AARCH64_INSN_FUNCS(eret, 0xFFFFFFFF, 0xD69F03E0)
365__AARCH64_INSN_FUNCS(mrs, 0xFFF00000, 0xD5300000)
366__AARCH64_INSN_FUNCS(msr_imm, 0xFFF8F01F, 0xD500401F)
367__AARCH64_INSN_FUNCS(msr_reg, 0xFFF00000, 0xD5100000)
368
369#undef __AARCH64_INSN_FUNCS
370
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2013 Huawei Ltd.
4 * Author: Jiang Liu <liuj97@gmail.com>
5 *
6 * Copyright (C) 2014 Zi Shen Lim <zlim.lnx@gmail.com>
7 */
8#ifndef __ASM_INSN_H

--- 354 unchanged lines hidden (view full) ---

363__AARCH64_INSN_FUNCS(ret, 0xFFFFFC1F, 0xD65F0000)
364__AARCH64_INSN_FUNCS(eret, 0xFFFFFFFF, 0xD69F03E0)
365__AARCH64_INSN_FUNCS(mrs, 0xFFF00000, 0xD5300000)
366__AARCH64_INSN_FUNCS(msr_imm, 0xFFF8F01F, 0xD500401F)
367__AARCH64_INSN_FUNCS(msr_reg, 0xFFF00000, 0xD5100000)
368
369#undef __AARCH64_INSN_FUNCS
370
371bool aarch64_insn_is_nop(u32 insn);
371bool aarch64_insn_is_steppable_hint(u32 insn);
372bool aarch64_insn_is_branch_imm(u32 insn);
373
374static inline bool aarch64_insn_is_adr_adrp(u32 insn)
375{
376 return aarch64_insn_is_adr(insn) || aarch64_insn_is_adrp(insn);
377}
378
379int aarch64_insn_read(void *addr, u32 *insnp);

--- 129 unchanged lines hidden ---
372bool aarch64_insn_is_branch_imm(u32 insn);
373
374static inline bool aarch64_insn_is_adr_adrp(u32 insn)
375{
376 return aarch64_insn_is_adr(insn) || aarch64_insn_is_adrp(insn);
377}
378
379int aarch64_insn_read(void *addr, u32 *insnp);

--- 129 unchanged lines hidden ---