1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * arch/arm64/kernel/probes/simulate-insn.h
5 * Copyright (C) 2013 Linaro Limited
8 #ifndef _ARM_KERNEL_KPROBES_SIMULATE_INSN_H
9 #define _ARM_KERNEL_KPROBES_SIMULATE_INSN_H
11 void simulate_adr_adrp(u32 opcode
, long addr
, struct pt_regs
*regs
);
12 void simulate_b_bl(u32 opcode
, long addr
, struct pt_regs
*regs
);
13 void simulate_b_cond(u32 opcode
, long addr
, struct pt_regs
*regs
);
14 void simulate_br_blr_ret(u32 opcode
, long addr
, struct pt_regs
*regs
);
15 void simulate_cbz_cbnz(u32 opcode
, long addr
, struct pt_regs
*regs
);
16 void simulate_tbz_tbnz(u32 opcode
, long addr
, struct pt_regs
*regs
);
17 void simulate_ldr_literal(u32 opcode
, long addr
, struct pt_regs
*regs
);
18 void simulate_ldrsw_literal(u32 opcode
, long addr
, struct pt_regs
*regs
);
20 #endif /* _ARM_KERNEL_KPROBES_SIMULATE_INSN_H */