aboutsummaryrefslogtreecommitdiff
path: root/gdb/cris-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-03 03:09:33 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-03 03:09:33 +0000
commit1e2279c81a35ee95c0f256cd6d5fd922b4dc74af (patch)
treef93ab60db648d810aae72ffd7466bd5837bbf928 /gdb/cris-tdep.c
parenta90c06b44df548fe45ee9acf2a777453480eb3d9 (diff)
downloadgdb-1e2279c81a35ee95c0f256cd6d5fd922b4dc74af.zip
gdb-1e2279c81a35ee95c0f256cd6d5fd922b4dc74af.tar.gz
gdb-1e2279c81a35ee95c0f256cd6d5fd922b4dc74af.tar.bz2
2004-08-02 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (deprecated_register_raw_size) (deprecated_register_virtual_size:int): Delete. * gdbarch.h, gdbarch.c: Re-generate. * cris-tdep.c (cris_register_size): Delete. (cris_gdbarch_init): Update. * alpha-tdep.c (alpha_register_raw_size) (alpha_register_virtual_size): Delete. (alpha_gdbarch_init): Update.
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r--gdb/cris-tdep.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index be90dbf..0d11fd1 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -1096,45 +1096,6 @@ cris_spec_reg_applicable (struct cris_spec_reg spec_reg)
}
}
-/* Returns the register size in unit byte. Returns 0 for an unimplemented
- register, -1 for an invalid register. */
-
-static int
-cris_register_size (int regno)
-{
- int i;
- int spec_regno;
-
- if (regno >= 0 && regno < NUM_GENREGS)
- {
- /* General registers (R0 - R15) are 32 bits. */
- return 4;
- }
- else if (regno >= NUM_GENREGS && regno < NUM_REGS)
- {
- /* Special register (R16 - R31). cris_spec_regs is zero-based.
- Adjust regno accordingly. */
- spec_regno = regno - NUM_GENREGS;
-
- /* The entries in cris_spec_regs are stored in register number order,
- which means we can shortcut into the array when searching it. */
- for (i = spec_regno; cris_spec_regs[i].name != NULL; i++)
- {
- if (cris_spec_regs[i].number == spec_regno
- && cris_spec_reg_applicable (cris_spec_regs[i]))
- /* Go with the first applicable register. */
- return cris_spec_regs[i].reg_size;
- }
- /* Special register not applicable to this CRIS version. */
- return 0;
- }
- else
- {
- /* Invalid register. */
- return -1;
- }
-}
-
/* Nonzero if regno should not be fetched from the target. This is the case
for unimplemented (size 0) and non-existant registers. */
@@ -3854,12 +3815,6 @@ cris_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
in the saved register state. */
set_gdbarch_deprecated_register_byte (gdbarch, cris_register_offset);
- /* The length of the registers in the actual machine representation. */
- set_gdbarch_deprecated_register_raw_size (gdbarch, cris_register_size);
-
- /* The length of the registers in the program's representation. */
- set_gdbarch_deprecated_register_virtual_size (gdbarch, cris_register_size);
-
set_gdbarch_register_type (gdbarch, cris_register_type);
/* Dummy frame functions. */