1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2015 Josh Poimboeuf <jpoimboe@redhat.com>
10 #include <linux/list.h>
14 #define INSN_JUMP_CONDITIONAL 1
15 #define INSN_JUMP_UNCONDITIONAL 2
16 #define INSN_JUMP_DYNAMIC 3
18 #define INSN_CALL_DYNAMIC 5
20 #define INSN_CONTEXT_SWITCH 7
29 #define INSN_LAST INSN_OTHER
41 enum op_dest_type type;
57 enum op_src_type type;
67 void arch_initial_func_cfi_state(struct cfi_state *state);
69 int arch_decode_instruction(struct elf *elf, struct section *sec,
70 unsigned long offset, unsigned int maxlen,
71 unsigned int *len, unsigned char *type,
72 unsigned long *immediate, struct stack_op *op);
74 bool arch_callee_saved_reg(unsigned char reg);