From 2f5e17369c0406c1accb1682deeaa256f1069d36 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Mon, 15 Nov 1993 23:29:56 +0000 Subject: [PATCH] Use remote-e7000.c --- gdb/config/sh/sh.mt | 2 +- gdb/config/sh/tm-sh.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gdb/config/sh/sh.mt b/gdb/config/sh/sh.mt index 744df7c5b32..eee9de35323 100644 --- a/gdb/config/sh/sh.mt +++ b/gdb/config/sh/sh.mt @@ -1,5 +1,5 @@ # Target: Hitachi Super-H ICE and simulator -TDEPFILES= exec.o sh-tdep.o remote-sim.o interp.o table.o +TDEPFILES= exec.o sh-tdep.o remote-sim.o interp.o table.o remote-e7000.o over: all interp.o: diff --git a/gdb/config/sh/tm-sh.h b/gdb/config/sh/tm-sh.h index 61ce7c9b855..cff063b5deb 100644 --- a/gdb/config/sh/tm-sh.h +++ b/gdb/config/sh/tm-sh.h @@ -63,7 +63,7 @@ extern CORE_ADDR sh_skip_prologue (); /* If your kernel resets the pc after the trap happens you may need to define this before including this file. */ -#define DECR_PC_AFTER_BREAK 0 +#define DECR_PC_AFTER_BREAK 2 /* Nonzero if instruction at PC is a return instruction. */ #define ABOUT_TO_RETURN(pc) (read_memory_integer(pc,2) == 0x000b) @@ -128,8 +128,8 @@ extern CORE_ADDR sh_skip_prologue (); #define VBR_REGNUM 19 #define MACH_REGNUM 20 #define MACL_REGNUM 21 -#define CR_REGNUM 22 - +#define SR_REGNUM 22 +#define NUM_REALREGS 23 /* Store the address of the place in which to copy the structure the subroutine will return. This is called from call_function. @@ -208,7 +208,7 @@ extern CORE_ADDR sh_skip_prologue (); typedef unsigned short INSN_WORD; -#define ADDR_BITS_REMOVE(addr) ((addr) & 0xffffff) +#define ADDR_BITS_REMOVE(addr) ((addr)) #define CALL_DUMMY_LENGTH 10 @@ -217,3 +217,4 @@ typedef unsigned short INSN_WORD; #define POP_FRAME pop_frame(); + -- 2.30.2