Fix: Null pointer dereference in ldlex.l
[binutils-gdb.git] / opcodes / kvx-dis.h
blob435fe7d9fe9e882bee6904e4b23ffada5e5b0ac8
1 /* kvx-dis.h -- Header file kvx-dis.c
2 Copyright (C) 2009-2023 Free Software Foundation, Inc.
3 Contributed by Kalray SA.
5 This file is part of the GNU opcodes library.
7 This library is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 It is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; see the file COPYING3. If not,
19 see <http://www.gnu.org/licenses/>. */
21 #ifndef _KV3_DIS_H_
22 #define _KV3_DIS_H_
24 #include "dis-asm.h"
26 #define KVX_GPR_REG_SP 12
27 #define KVX_GPR_REG_FP 14
29 enum kvx_prologue_epilogue_insn_type
31 KVX_PROL_EPIL_INSN_SD,
32 KVX_PROL_EPIL_INSN_SQ,
33 KVX_PROL_EPIL_INSN_SO,
34 KVX_PROL_EPIL_INSN_GET_RA,
35 KVX_PROL_EPIL_INSN_ADD_FP,
36 KVX_PROL_EPIL_INSN_ADD_SP,
37 KVX_PROL_EPIL_INSN_RESTORE_SP_FROM_FP,
38 KVX_PROL_EPIL_INSN_GOTO,
39 KVX_PROL_EPIL_INSN_IGOTO,
40 KVX_PROL_EPIL_INSN_CB,
41 KVX_PROL_EPIL_INSN_RET,
42 KVX_PROL_EPIL_INSN_CALL,
45 struct kvx_prologue_epilogue_insn
47 enum kvx_prologue_epilogue_insn_type insn_type;
48 uint64_t immediate;
49 int gpr_reg[3];
50 int nb_gprs;
53 struct kvx_prologue_epilogue_bundle
55 struct kvx_prologue_epilogue_insn insn[6];
56 int nb_insn;
59 int decode_prologue_epilogue_bundle (bfd_vma memaddr,
60 struct disassemble_info *info,
61 struct kvx_prologue_epilogue_bundle *pb);
63 void parse_kvx_dis_option (const char *option);
65 #endif