exec/cpu-common: add qemu_ram_get_fd()
[qemu/ar7.git] / target / hexagon / opcodes.h
blob6e90e00fe221e978ecb81710df41b11a4b25f00f
1 /*
2 * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (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/>.
18 #ifndef HEXAGON_OPCODES_H
19 #define HEXAGON_OPCODES_H
21 typedef enum {
22 #define OPCODE(IID) IID
23 #include "opcodes_def_generated.h.inc"
24 XX_LAST_OPCODE
25 #undef OPCODE
26 } Opcode;
28 typedef enum {
29 NORMAL,
30 HALF,
31 SUBINSN_A,
32 SUBINSN_L1,
33 SUBINSN_L2,
34 SUBINSN_S1,
35 SUBINSN_S2,
36 EXT_noext,
37 EXT_mmvec,
38 XX_LAST_ENC_CLASS
39 } EncClass;
41 extern const char * const opcode_names[];
43 extern const char * const opcode_reginfo[];
44 extern const char * const opcode_rregs[];
45 extern const char * const opcode_wregs[];
47 typedef struct {
48 const char * const encoding;
49 const EncClass enc_class;
50 } OpcodeEncoding;
52 extern const OpcodeEncoding opcode_encodings[XX_LAST_OPCODE];
54 void opcode_init(void);
56 int opcode_which_immediate_is_extended(Opcode opcode);
58 #endif