2 * Copyright (C) 2015 Josh Poimboeuf <jpoimboe@redhat.com>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
22 #include <linux/list.h>
26 #define INSN_JUMP_CONDITIONAL 1
27 #define INSN_JUMP_UNCONDITIONAL 2
28 #define INSN_JUMP_DYNAMIC 3
30 #define INSN_CALL_DYNAMIC 5
32 #define INSN_CONTEXT_SWITCH 7
37 #define INSN_LAST INSN_OTHER
48 enum op_dest_type type
;
63 enum op_src_type type
;
73 void arch_initial_func_cfi_state(struct cfi_state
*state
);
75 int arch_decode_instruction(struct elf
*elf
, struct section
*sec
,
76 unsigned long offset
, unsigned int maxlen
,
77 unsigned int *len
, unsigned char *type
,
78 unsigned long *immediate
, struct stack_op
*op
);
80 bool arch_callee_saved_reg(unsigned char reg
);