1 /* Target-specific definition for a Renesas Super-H.
2 Copyright (C) 1993-2003, 2007-2012 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 /* Contributed by Steve Chamberlain sac@cygnus.com. */
24 /* Registers for all SH variants. Used also by sh3-rom.c. */
28 STRUCT_RETURN_REGNUM = 2,
40 /* Floating point registers */
43 FLOAT_ARG0_REGNUM = 29,
44 FLOAT_ARGLAST_REGNUM = 36,
46 /* sh3,sh4 registers */
64 DSP_R0_BANK_REGNUM = 51,
65 DSP_R7_BANK_REGNUM = 58,
77 PSEUDO_BANK_REGNUM = 67,
78 /* Floating point pseudo registers */
85 extern gdbarch_init_ftype sh64_gdbarch_init;
86 extern void sh64_show_regs (struct frame_info *);
88 /* This structure describes a register in a core-file. */
89 struct sh_corefile_regmap
97 /* Non-NULL when debugging from a core file. Provides the offset
98 where each general-purpose register is stored inside the associated
100 struct sh_corefile_regmap *core_gregmap;
101 /* Non-NULL when debugging from a core file and when FP registers are
102 available. Provides the offset where each FP register is stored
103 inside the associated core file section. */
104 struct sh_corefile_regmap *core_fpregmap;
107 extern struct regset sh_corefile_gregset;
109 void sh_corefile_supply_regset (const struct regset *regset,
110 struct regcache *regcache,
111 int regnum, const void *regs, size_t len);
112 void sh_corefile_collect_regset (const struct regset *regset,
113 const struct regcache *regcache,
114 int regnum, void *regs, size_t len);
115 #endif /* SH_TDEP_H */