summaryrefslogtreecommitdiff
path: root/sim/h8300
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-30 01:26:08 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-30 03:29:53 -0500
commitf2089a69c164c789bcfd06b5eb9e0878f5520e13 (patch)
tree1bb442b2955a2d451a434da7c983d0d720478bc5 /sim/h8300
parent331e61312eab8ef2412582bafc404cc107fd5e8f (diff)
downloadbinutils-gdb-f2089a69c164c789bcfd06b5eb9e0878f5520e13.tar.gz
sim: h8300: drop unused inst.h
We can also drop the compile.o rule since the common dep generation logic takes care of this for us.
Diffstat (limited to 'sim/h8300')
-rw-r--r--sim/h8300/ChangeLog5
-rw-r--r--sim/h8300/Makefile.in6
-rw-r--r--sim/h8300/inst.h98
3 files changed, 5 insertions, 104 deletions
diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog
index d8f38567993..b4ad754adfa 100644
--- a/sim/h8300/ChangeLog
+++ b/sim/h8300/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-30 Mike Frysinger <vapier@gentoo.org>
+
+ * inst.h: Delete file.
+ * Makefile.in (compile.o): Delete rule.
+
2015-12-26 Mike Frysinger <vapier@gentoo.org>
* config.in, configure: Regenerate.
diff --git a/sim/h8300/Makefile.in b/sim/h8300/Makefile.in
index 9afbc0d24c9..468ecc453d4 100644
--- a/sim/h8300/Makefile.in
+++ b/sim/h8300/Makefile.in
@@ -21,9 +21,3 @@ SIM_OBJS = compile.o \
$(SIM_NEW_COMMON_OBJS)
## COMMON_POST_CONFIG_FRAG
-
-compile.o: compile.c inst.h config.h \
- $(srcdir)/../../include/gdb/sim-h8300.h \
- $(srcdir)/../../include/opcode/h8300.h \
- $(srcdir)/../../include/gdb/remote-sim.h \
- $(srcdir)/../../include/gdb/callback.h
diff --git a/sim/h8300/inst.h b/sim/h8300/inst.h
deleted file mode 100644
index edbee6ae380..00000000000
--- a/sim/h8300/inst.h
+++ /dev/null
@@ -1,98 +0,0 @@
-#define DEBUG
-
-/* These define the size of main memory for the simulator.
-
- Note the size of main memory for the H8/300H is only 256k. Keeping it
- small makes the simulator run much faster and consume less memory.
-
- The linker knows about the limited size of the simulator's main memory
- on the H8/300H (via the h8300h.sc linker script). So if you change
- H8300H_MSIZE, be sure to fix the linker script too.
-
- Also note that there's a separate "eightbit" area aside from main
- memory. For simplicity, the simulator assumes any data memory reference
- outside of main memory refers to the eightbit area (in theory, this
- can only happen when simulating H8/300H programs). We make no attempt
- to catch overlapping addresses, wrapped addresses, etc etc. */
-#define H8300_MSIZE (1 << 16)
-
-/* avolkov:
- Next 2 macros are ugly for any workstation, but while they're work.
- Memory size MUST be configurable. */
-#define H8300H_MSIZE (1 << 18)
-#define H8300S_MSIZE (1 << 24)
-
-#define CSIZE 1000
-
-/* Local register names */
-typedef enum
-{
- R0, R1, R2, R3, R4, R5, R6, R7,
- R_ZERO,
- R_PC,
- R_CCR,
- R_EXR,
- R_HARD_0,
- R_LAST,
-} reg_type;
-
-
-/* Structure used to describe addressing */
-
-typedef struct
-{
- int type;
- int reg;
- int literal;
-} ea_type;
-
-
-
-typedef struct
-{
- ea_type src;
- ea_type dst;
- int opcode;
- int next_pc;
- int oldpc;
- int cycles;
-#ifdef DEBUG
-struct h8_opcode *op;
-#endif
-}
-decoded_inst;
-
-enum h8300_sim_state {
- SIM_STATE_RUNNING, SIM_STATE_EXITED, SIM_STATE_SIGNALLED, SIM_STATE_STOPPED
-};
-
-/* For Command Line. */
-char **ptr_command_line; /* Pointer to Command Line Arguments. */
-
-typedef struct
-{
- enum h8300_sim_state state;
- int exception;
- unsigned int regs[9];
- int pc;
- int ccr;
- int exr;
-
- unsigned char *memory;
- unsigned char *eightbit;
- unsigned short *cache_idx;
- int cache_top;
- int maximum;
- int csize;
- int mask;
-
- decoded_inst *cache;
- int cycles;
- int insts;
- int ticks;
- int compiles;
-#ifdef ADEBUG
- int stats[O_LAST];
-#endif
-}
-cpu_state_type;