aarch64: Fix tlbi and tlbip instructions
[binutils-gdb.git] / gdb / cgen-remap.h
blob35f09c1269b3f953e93bef663dc9f831925cea28
1 /* Copyright (C) 2023-2024 Free Software Foundation, Inc.
3 This file is part of GDB.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 #ifndef CGEN_REMAP_H
19 #define CGEN_REMAP_H
21 /* Remap cgen interface names, so we can have multiple cgen generated include
22 files in gdb without violating c++ ODR. */
24 /* Define GDB_CGEN_REMAP_PREFIX to the desired remapping prefix before
25 including this file. */
26 #ifndef GDB_CGEN_REMAP_PREFIX
27 # error "GDB_CGEN_REMAP_PREFIX not defined"
28 #endif
30 #define GDB_CGEN_REMAP_2(PREFIX, SYM) PREFIX ## _ ## SYM
31 #define GDB_CGEN_REMAP_1(PREFIX, SYM) GDB_CGEN_REMAP_2 (PREFIX, SYM)
32 #define GDB_CGEN_REMAP(SYM) GDB_CGEN_REMAP_1 (GDB_CGEN_REMAP_PREFIX, SYM)
34 #define cgen_operand_type GDB_CGEN_REMAP (cgen_operand_type)
35 #define cgen_hw_type GDB_CGEN_REMAP (cgen_hw_type)
36 #define cgen_ifld GDB_CGEN_REMAP (cgen_ifld)
37 #define cgen_insn GDB_CGEN_REMAP (cgen_insn)
38 #define cgen_cpu_desc GDB_CGEN_REMAP (cgen_cpu_desc)
39 #define cgen_fields GDB_CGEN_REMAP (cgen_fields)
40 #define cgen_insn_list GDB_CGEN_REMAP (cgen_insn_list)
41 #define cgen_maybe_multi_ifield GDB_CGEN_REMAP (cgen_maybe_multi_ifield)
42 #define CGEN_OPINST GDB_CGEN_REMAP (CGEN_OPINST)
43 #define CGEN_IFMT_IFLD GDB_CGEN_REMAP (CGEN_IFMT_IFLD)
44 #define CGEN_INSN_ATTR_TYPE GDB_CGEN_REMAP (CGEN_INSN_ATTR_TYPE)
45 #define CGEN_IBASE GDB_CGEN_REMAP (CGEN_IBASE)
46 #define CGEN_HW_ENTRY GDB_CGEN_REMAP (CGEN_HW_ENTRY)
47 #define CGEN_HW_TABLE GDB_CGEN_REMAP (CGEN_HW_TABLE)
48 #define CGEN_INSN_TABLE GDB_CGEN_REMAP (CGEN_INSN_TABLE)
49 #define CGEN_OPERAND_TABLE GDB_CGEN_REMAP (CGEN_OPERAND_TABLE)
50 #define CGEN_OPERAND GDB_CGEN_REMAP (CGEN_OPERAND)
51 #define CGEN_MAYBE_MULTI_IFLD GDB_CGEN_REMAP (CGEN_MAYBE_MULTI_IFLD)
53 #endif /* CGEN_REMAP_H */