aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/mn10300
diff options
context:
space:
mode:
authorGeoffrey Noer <noer@cygnus>1996-12-09 08:33:27 +0000
committerGeoffrey Noer <noer@cygnus>1996-12-09 08:33:27 +0000
commitddc2888e6b77292272adb3c0f0296019eaeef9be (patch)
tree63b807dcf95ca2e62e109a5a206d2673199b8db0 /gdb/config/mn10300
parent966f47b470ffbdcce7241a1a1d00f73d1ea65970 (diff)
downloadgdb-ddc2888e6b77292272adb3c0f0296019eaeef9be.zip
gdb-ddc2888e6b77292272adb3c0f0296019eaeef9be.tar.gz
gdb-ddc2888e6b77292272adb3c0f0296019eaeef9be.tar.bz2
Mon Dec 9 00:14:49 1996 Geoffrey Noer <noer@cygnus.com>
* config/mn10300/tm-mn10300.h: fix register names * mn10300-tdep.c: new skeleton tdep for mn10300
Diffstat (limited to 'gdb/config/mn10300')
-rw-r--r--gdb/config/mn10300/tm-mn10300.h37
1 files changed, 12 insertions, 25 deletions
diff --git a/gdb/config/mn10300/tm-mn10300.h b/gdb/config/mn10300/tm-mn10300.h
index 5b859bb..846483d 100644
--- a/gdb/config/mn10300/tm-mn10300.h
+++ b/gdb/config/mn10300/tm-mn10300.h
@@ -22,34 +22,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define TARGET_BYTE_ORDER LITTLE_ENDIAN
-#define NUM_REGS 65
-
-#define REGISTER_NAMES \
-{ "r0", "r1", "r2", "sp", "gp", "r5", "r6", "r7", \
- "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", \
- "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", \
- "r24", "r25", "r26", "r27", "r28", "fp", "ep", "r31", \
- \
- "eipc", "eipsw", "fepc", "fepsw", "ecr", "psw", "sr6", "sr7", \
- "sr8", "sr9", "sr10", "sr11", "sr12", "sr13", "sr14", "sr15", \
- "sr16", "sr17", "sr18", "sr19", "sr20", "sr21", "sr22", "sr23", \
- "sr24", "sr25", "sr26", "sr27", "sr28", "sr29", "sr30", "sr31", \
- "pc" }
-
#define REGISTER_BYTES (NUM_REGS * 4)
#define REGISTER_SIZE 4
#define MAX_REGISTER_RAW_SIZE 4
-#define SP_REGNUM 3
-#define ARG0_REGNUM 6
-#define ARGLAST_REGNUM 9
-#define V0_REGNUM 10
-#define V1_REGNUM 11
-#define FP_REGNUM 29
-#define RP_REGNUM 31
-#define PS_REGNUM 37
-#define PC_REGNUM 64
+#define NUM_REGS 14
+
+#define REGISTER_NAMES \
+{ "d0", "d1", "d2", "d3", "a0", "a1", "a2", "a3", \
+ "sp", "pc", "mdr", "psw", "lir", "lar"}
+
+#define SP_REGNUM 8
+#define PC_REGNUM 9
+#define MDR_REGNUM 10
+#define PSW_REGNUM 11
+#define LIR_REGNUM 12
+#define LAR_REGNUM 13
#define REGISTER_VIRTUAL_TYPE(REG) builtin_type_int
@@ -124,7 +113,6 @@ extern void mn10300_pop_frame PARAMS ((struct frame_info *frame));
extern CORE_ADDR mn10300_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR));
#define PUSH_RETURN_ADDRESS(PC, SP) mn10300_push_return_address (PC, SP)
-
#define PUSH_DUMMY_FRAME generic_push_dummy_frame ()
extern CORE_ADDR
@@ -136,7 +124,6 @@ mn10300_push_arguments PARAMS ((int nargs, struct value **args, CORE_ADDR sp,
#define STORE_STRUCT_RETURN(STRUCT_ADDR, SP)
-
#define PC_IN_CALL_DUMMY(PC, SP, FP) generic_pc_in_call_dummy (PC, SP)
#define USE_STRUCT_CONVENTION(GCC_P, TYPE) \