forked from Imagelibrary/binutils-gdb
* infcmd.c (do_registers_info): Ignore anonymous registers.
* sh-tdep.c (set processor): New command to set specific processor type. (sh_reg_names, sh3_reg_names): Arrays of register names for SH and SH3 processors. (sh_set_processor_type): New function. * sh3-rom.c (sh3_open): Call it. (sh3_regname): Add names of all the bank registers. (sh3_supply_register): Clean up formatting. * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include bank registers. (REGISTER_NAMES): Add names of bank registers. (FP15_REGNUM): Define. (REGISTER_VIRTUAL_TYPE): Use it. * monitor.c: Clean up some comments.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Parameters for execution on a Hitachi Super-H machine.
|
||||
/* Target-specific definition for a Hitachi Super-H.
|
||||
Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
@@ -99,7 +99,7 @@ extern CORE_ADDR sh_skip_prologue ();
|
||||
of data in register N. */
|
||||
|
||||
#define REGISTER_VIRTUAL_TYPE(N) \
|
||||
((((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) \
|
||||
((((N) >= FP0_REGNUM && (N) < FP15_REGNUM) \
|
||||
|| (N) == FPUL_REGNUM) \
|
||||
? builtin_type_float : builtin_type_int)
|
||||
|
||||
@@ -107,14 +107,17 @@ extern CORE_ADDR sh_skip_prologue ();
|
||||
Entries beyond the first NUM_REGS are ignored. */
|
||||
|
||||
#define REGISTER_NAMES \
|
||||
{"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \
|
||||
"r8", "r9", "r10","r11","r12","r13","r14","r15",\
|
||||
"pc", "pr","gbr","vbr","mach","macl", "sr", "fpul", "fpscr", \
|
||||
{"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \
|
||||
"r8", "r9", "r10","r11","r12", "r13", "r14","r15",\
|
||||
"pc", "pr", "gbr","vbr","mach","macl","sr", \
|
||||
"fpul","fpscr", \
|
||||
"fr0", "fr1", "fr2", "fr3", "fr4", "fr5", "fr6", "fr7", \
|
||||
"fr8", "fr9", "fr10","fr11","fr12","fr13","fr14","fr15",\
|
||||
"r0b0", "r1b0", "r2b0", "r3b0", "r4b0", "r5b0", "r6b0", "r7b0", \
|
||||
"r0b1", "r1b1", "r2b1", "r3b1", "r4b1", "r5b1", "r6b1", "r7b1" \
|
||||
}
|
||||
|
||||
#define NUM_REGS 41
|
||||
#define NUM_REGS 57
|
||||
|
||||
/* Register numbers of various important registers.
|
||||
Note that some of these values are "real" register numbers,
|
||||
@@ -136,8 +139,9 @@ extern CORE_ADDR sh_skip_prologue ();
|
||||
#define NUM_REALREGS 23
|
||||
#define FPUL_REGNUM 23
|
||||
#define FP0_REGNUM 25
|
||||
#define FP15_REGNUM 41
|
||||
#undef NUM_REALREGS
|
||||
#define NUM_REALREGS 41
|
||||
#define NUM_REALREGS 57
|
||||
|
||||
/* Store the address of the place in which to copy the structure the
|
||||
subroutine will return. This is called from call_function.
|
||||
|
||||
Reference in New Issue
Block a user