From 779b65bfdb86f6d233b3e9f1b412f405cdfeef73 Mon Sep 17 00:00:00 2001 From: Gavin Romig-Koch Date: Tue, 3 Mar 1998 16:53:41 +0000 Subject: [PATCH] * mips-dis.c (_print_insn_mips) : Handle bfd_mach_mips4320. * mips-opc.c ("mac","dmac") : Added 4320 insns. --- opcodes/.Sanitize | 28 ++++++++++++++++++++++++++++ opcodes/ChangeLog | 7 +++++++ opcodes/mips-opc.c | 7 +++++++ 3 files changed, 42 insertions(+) diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize index 9cd333cf5f7..b633ed2a2a7 100644 --- a/opcodes/.Sanitize +++ b/opcodes/.Sanitize @@ -238,6 +238,34 @@ else done fi +vr4320_files="ChangeLog mips-opc.c mips-dis.c" +if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then + for i in $vr4320_files ; do + if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Keeping vr4320 stuff in $i + fi + fi + done +else + for i in $vr4320_files ; do + if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then + if [ -n "${verbose}" ] ; then + echo Removing traces of \"vr4320\" from $i... + fi + cp $i new + sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new + if [ -n "${safe}" -a ! -f .Recover/$i ] ; then + if [ -n "${verbose}" ] ; then + echo Caching $i in .Recover... + fi + mv $i .Recover + fi + mv new $i + fi + done +fi + vr5400_files="ChangeLog mips-opc.c mips-dis.c" if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then for i in $vr5400_files ; do diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index bf5345ed116..939cdb86241 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +start-sanitize-vr4320 +Tue Mar 3 11:47:58 1998 Gavin Koch + + * mips-dis.c (_print_insn_mips) : Handle bfd_mach_mips4320. + * mips-opc.c ("mac","dmac") : Added 4320 insns. + +end-sanitize-vr4320 Sat Feb 28 16:02:34 1998 Nick Clifton * arm-dis.c (print_insn_big_arm, print_insn_little_arm): Do not diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c index 7cf2e1a7fd8..e7de688ee5f 100644 --- a/opcodes/mips-opc.c +++ b/opcodes/mips-opc.c @@ -79,6 +79,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * /* start-sanitize-tx49 */ #define T4 INSN_4900 /* end-sanitize-tx49 */ +/* start-sanitize-vr4320 */ +#define N4 INSN_4320 +/* end-sanitize-vr4320 */ /* start-sanitize-vr5400 */ #define N5 INSN_5400 /* end-sanitize-vr5400 */ @@ -520,6 +523,10 @@ const struct mips_opcode mips_builtin_opcodes[] = { {"lwu", "t,o(b)", 0x9c000000, 0xfc000000, LDD|RD_b|WR_t, I3 }, {"lwu", "t,A(b)", 0, (int) M_LWU_AB, INSN_MACRO, I3 }, {"lwxc1", "D,t(b)", 0x4c000000, 0xfc00f83f, LDD|WR_D|RD_t|RD_b, I4 }, + /* start-sanitize-vr4320 */ +{"mac", "s,t", 0x00000028, 0xfc00ffff, RD_s|RD_t|MOD_HILO, N4}, +{"dmac", "s,t", 0x00000029, 0xfc00ffff, RD_s|RD_t|WR_LO, N4}, + /* end-sanitize-vr4320 */ /* start-sanitize-vr5400 */ {"macc", "d,s,t", 0x00000158, 0xfc0007ff, RD_s|RD_t|MOD_HILO|WR_d, N5 }, {"maccu", "d,s,t", 0x00000159, 0xfc0007ff, RD_s|RD_t|MOD_HILO|WR_d, N5 }, -- 2.30.2