/* Parameters for execution on a H8/300 series machine.
- Copyright (C) 1992 Free Software Foundation, Inc.
+ Copyright 1992, 1993 Free Software Foundation, Inc.
This file is part of GDB.
#define REGISTER_TYPE unsigned short
-# define NUM_REGS 10
-# define REGISTER_BYTES (10*2)
+/*# define NUM_REGS 20 /* 20 for fake HW support */
+# define NUM_REGS 11
+# define REGISTER_BYTES (NUM_REGS*2)
/* Index within `registers' of the first byte of the space for
/* Initializer for an array of names of registers.
Entries beyond the first NUM_REGS are ignored. */
+#if NUM_REGS==20
#define REGISTER_NAMES \
- {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "sp","ccr","pc"}
-
+ {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "sp",\
+ "ccr","pc","cycles","hcheck","tier","tcsr","frc",\
+ "ocra","ocrb","tcr","tocr","icra"}
+#else
+#define REGISTER_NAMES \
+ {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "sp", "ccr","pc","cycles"}
+#endif
/* Register numbers of various important registers.
Note that some of these values are "real" register numbers,
#define BEFORE_MAIN_LOOP_HOOK \
hms_before_main_loop();
-
-#define NAMES_HAVE_UNDERSCORE
-
typedef unsigned short INSN_WORD;
#define ADDR_BITS_REMOVE(addr) ((addr) & 0xffff)