]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m32r-gx/arch.h
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / m32r-gx / arch.h
1 /* Simulator header for m32r.
2
3 This file is machine generated with CGEN.
4
5 Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
6
7 This file is part of the GNU Simulators.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23 */
24
25 #ifndef M32R_ARCH_H
26 #define M32R_ARCH_H
27
28 #include "m32r-opc.h"
29
30 #define TARGET_BIG_ENDIAN 1
31
32 /* Shorthand macro for fetching registers. */
33 #define CPU(x) (CPU_CGEN_HW (current_cpu)->x)
34
35 typedef enum model_type {
36 MODEL_M32R_D, MODEL_TEST
37 , MODEL_MAX
38 } MODEL_TYPE;
39
40 #define MAX_MODELS ((int) MODEL_MAX)
41
42 /* Enum declaration for unit types. */
43 typedef enum unit_type {
44 UNIT_NONE, UNIT_M32R_D_U_STORE, UNIT_M32R_D_U_LOAD, UNIT_M32R_D_U_EXEC
45 , UNIT_TEST_U_EXEC
46 , UNIT_MAX
47 } UNIT_TYPE;
48
49 #define MAX_UNITS (1)
50
51 #endif /* M32R_ARCH_H */
52