From 1c509ca8216de106f508b463a13ceea60ccce878 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Fri, 17 May 2002 14:36:46 +0000 Subject: 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. --- sim/sh64/sim-if.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'sim/sh64/sim-if.c') 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); } -- cgit v1.1