aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/arch.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-02-05 21:01:06 +0000
committerDoug Evans <dje@google.com>1998-02-05 21:01:06 +0000
commitb8a9943dd4f35984507734e2ad21ad60e4f42d4e (patch)
tree6452099c47e76691f105259bc6149a2e99886110 /sim/m32r/arch.h
parent5bd5a5c7a2647a21aa0662e56c323ac5f76bdbcd (diff)
downloadgdb-b8a9943dd4f35984507734e2ad21ad60e4f42d4e.zip
gdb-b8a9943dd4f35984507734e2ad21ad60e4f42d4e.tar.gz
gdb-b8a9943dd4f35984507734e2ad21ad60e4f42d4e.tar.bz2
* Makefile.in (m32r.o): Depend on cpu.h
(extract.o): Pass -DSCACHE_P. * mloop.in (extract{16,32}): Update call to m32r_decode. * arch.h,cpu.h,cpuall.h,decode.[ch]: Regenerate. * extract.c,model.c,sem-switch.c,sem.c: Regenerate. * sim-main.h: #include "ansidecl.h". Don't include cpu-opc.h, done by arch.h. start-sanitize-m32rx * Makefile.in (M32RX_OBJS): Build m32rx support now. (m32rx.o): New rule. * m32r-sim.h (m32rx_h_cr_[gs]et): Define. * m32rx.c (m32rx_{fetch,store}_register): Update {get,set} of PC. (m32rx_h_accums_get): New function. * mloopx.in: Update call to m32rx_decode. Rewrite exec loop. * cpux.h,decodex.[ch],modelx.c,readx.c,semx.c: Regenerate. end-sanitize-m32rx
Diffstat (limited to 'sim/m32r/arch.h')
-rw-r--r--sim/m32r/arch.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/sim/m32r/arch.h b/sim/m32r/arch.h
index 989c9b2..57a7db1 100644
--- a/sim/m32r/arch.h
+++ b/sim/m32r/arch.h
@@ -1,5 +1,7 @@
/* Simulator header for m32r.
+This file is machine generated with CGEN.
+
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU Simulators.
@@ -23,25 +25,19 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef M32R_ARCH_H
#define M32R_ARCH_H
-#define MAX_INSNS 166
+#include "m32r-opc.h"
#define TARGET_BIG_ENDIAN 1
/* Shorthand macro for fetching registers. */
#define CPU(x) (CPU_CGEN_HW (current_cpu)->x)
-/* Macros to determine which cpus are supported. */
-#define HAVE_CPU_M32R
-/* start-sanitize-m32rx */
-/*#define HAVE_CPU_M32RX*/
-/* end-sanitize-m32rx */
-
/* Enum declaration for mode types. */
typedef enum mode_type {
- MODE_VM, MODE_BI, MODE_QI, MODE_HI,
- MODE_SI, MODE_DI, MODE_UBI, MODE_UQI,
- MODE_UHI, MODE_USI, MODE_UDI, MODE_SF,
- MODE_DF, MODE_XF, MODE_TF, MODE_MAX
+ MODE_VM, MODE_BI, MODE_QI, MODE_HI
+ , MODE_SI, MODE_DI, MODE_UBI, MODE_UQI
+ , MODE_UHI, MODE_USI, MODE_UDI, MODE_SF
+ , MODE_DF, MODE_XF, MODE_TF, MODE_MAX
} MODE_TYPE;
#define MAX_MODES ((int) MODE_MAX)
@@ -58,8 +54,8 @@ typedef enum model_type {
/* Enum declaration for unit types. */
typedef enum unit_type {
- UNIT_NONE, UNIT_M32R_D_U_STORE, UNIT_M32R_D_U_LOAD, UNIT_M32R_D_U_EXEC,
- UNIT_TEST_U_EXEC, UNIT_M32RX_U_EXEC, UNIT_MAX
+ UNIT_NONE, UNIT_M32R_D_U_STORE, UNIT_M32R_D_U_LOAD, UNIT_M32R_D_U_EXEC
+ , UNIT_TEST_U_EXEC, UNIT_M32RX_U_EXEC, UNIT_MAX
} UNIT_TYPE;
#define MAX_UNITS (1)