aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2002-05-17 14:36:46 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2002-05-17 14:36:46 +0000
commit1c509ca8216de106f508b463a13ceea60ccce878 (patch)
treeb99f4a21d27157edf9e92d959e57c8e72c4a8a29 /sim
parentef60b7ff0e85790141643fc60f82d8d6e86ae014 (diff)
downloadgdb-1c509ca8216de106f508b463a13ceea60ccce878.zip
gdb-1c509ca8216de106f508b463a13ceea60ccce878.tar.gz
gdb-1c509ca8216de106f508b463a13ceea60ccce878.tar.bz2
print_insn_sh cleanup:
include: * dis-asm.h (print_insn_shl, print_insn_sh64l): Remove prototype. gdb: * sh-tdep.c (gdb_print_insn_sh64): Delete. (gdb_print_insn_sh): Just set info->endian and use print_insn_sh. (sh_gdbarch_init): Always use gdb_print_insn_sh. opcodes: * disassemble.c (disassembler): Just use print_insn_sh for bfd_arch_sh. * sh-dis.c (LITTLE_BIT): Delete. (print_insn_sh, print_insn_shl): Deleted. (print_insn_shx): Renamed to (print_insn_sh). No longer static. Handle SHmedia instructions. Use info->endian to determine endianness. * sh64-dis.c (print_insn_sh64, print_insn_sh64l): Delete. (print_insn_sh64x): No longer static. Renamed to (print_insn_sh64). Removed pfun_compact and endian arguments. If we got an uneven address to indicate SHmedia, adjust it. Return -2 for SHcompact instructions. sim/sh64: * sim-if.c (sh64_disassemble_insn): Use print_insn_sh instead of print_insn_shl.
Diffstat (limited to 'sim')
-rw-r--r--sim/sh64/ChangeLog5
-rw-r--r--sim/sh64/sim-if.c12
2 files changed, 6 insertions, 11 deletions
diff --git a/sim/sh64/ChangeLog b/sim/sh64/ChangeLog
index 99d5c39..706a866 100644
--- a/sim/sh64/ChangeLog
+++ b/sim/sh64/ChangeLog
@@ -1,3 +1,8 @@
+Fri May 17 14:27:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
+
+ * sim-if.c (sh64_disassemble_insn): Use print_insn_sh instead of
+ print_insn_shl.
+
2001-07-05 Ben Elliston <bje@redhat.com>
* Makefile.in (stamp-arch): Use $(CGEN_CPU_DIR).
diff --git a/sim/sh64/sim-if.c b/sim/sh64/sim-if.c
index 6024697..baef638 100644
--- a/sim/sh64/sim-if.c
+++ b/sim/sh64/sim-if.c
@@ -232,15 +232,5 @@ sh64_disassemble_insn (SIM_CPU *cpu, const CGEN_INSN *insn,
if (sh64_h_ism_get (cpu) == ISM_MEDIA)
print_insn_sh64x_media (pc, &disasm_info);
else
- switch (disasm_info.endian)
- {
- case BFD_ENDIAN_BIG:
- print_insn_sh (pc, &disasm_info);
- break;
- case BFD_ENDIAN_LITTLE:
- print_insn_shl (pc, &disasm_info);
- break;
- default:
- abort();
- }
+ print_insn_sh (pc, &disasm_info);
}