This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / sim / m32r / arch.h
CommitLineData
369fba30
DE
1/* Simulator header for m32r.
2
b8a9943d
DE
3This file is machine generated with CGEN.
4
369fba30
DE
5Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
6
7This file is part of the GNU Simulators.
8
9This program is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 2, or (at your option)
12any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License along
20with this program; if not, write to the Free Software Foundation, Inc.,
2159 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23*/
24
25#ifndef M32R_ARCH_H
26#define M32R_ARCH_H
27
b8a9943d 28#include "m32r-opc.h"
369fba30
DE
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
369fba30
DE
35/* Enum declaration for mode types. */
36typedef enum mode_type {
b8a9943d
DE
37 MODE_VM, MODE_BI, MODE_QI, MODE_HI
38 , MODE_SI, MODE_DI, MODE_UBI, MODE_UQI
39 , MODE_UHI, MODE_USI, MODE_UDI, MODE_SF
40 , MODE_DF, MODE_XF, MODE_TF, MODE_MAX
369fba30
DE
41} MODE_TYPE;
42
43#define MAX_MODES ((int) MODE_MAX)
44
45/* Return name of instruction numbered INSN. */
46#define INSN_NAME(insn) (m32r_cgen_insn_table_entries[insn].name)
47
48/* Enum declaration for model types. */
49typedef enum model_type {
d4feafa6 50 MODEL_M32R_D, MODEL_TEST, MODEL_M32RX, MODEL_MAX
369fba30
DE
51} MODEL_TYPE;
52
53#define MAX_MODELS ((int) MODEL_MAX)
54
55/* Enum declaration for unit types. */
56typedef enum unit_type {
b8a9943d
DE
57 UNIT_NONE, UNIT_M32R_D_U_STORE, UNIT_M32R_D_U_LOAD, UNIT_M32R_D_U_EXEC
58 , UNIT_TEST_U_EXEC, UNIT_M32RX_U_EXEC, UNIT_MAX
369fba30
DE
59} UNIT_TYPE;
60
61#define MAX_UNITS (1)
62
63#endif /* M32R_ARCH_H */
This page took 0.058533 seconds and 4 git commands to generate.