From a21e1e96beeb987a8193232aa9f5f1652a23d372 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 27 Mar 1997 19:25:01 +0000 Subject: [PATCH] * mips-opc.c: Add cast when setting mips_opcodes. --- opcodes/ChangeLog | 12 ++++++++++++ opcodes/mips-opc.c | 20 +++++++++++++------- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index e3a61f6c24f..912ed18e275 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,15 @@ +Thu Mar 27 14:24:43 1997 Ian Lance Taylor + + * mips-opc.c: Add cast when setting mips_opcodes. + +start-sanitize-v850 +Tue Mar 25 23:04:00 1997 Stu Grossman (grossman@critters.cygnus.com) + + * v850-dis.c (disassemble): Fix sign extension problem. + * v850-opc.c (extract_d*): Fix sign extension problems to make + disassembly calculate branch offsets correctly. + +end-sanitize-v850 Mon Mar 24 13:22:13 1997 Ian Lance Taylor * sh-opc.h: Add bf/s and bt/s as synonyms for bf.s and bt.s. diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c index 26eab12ef63..6c431253d34 100644 --- a/opcodes/mips-opc.c +++ b/opcodes/mips-opc.c @@ -1,5 +1,5 @@ /* mips.h. Mips opcode list for GDB, the GNU debugger. - Copyright 1993, 1994, 1995, 1996 Free Software Foundation, Inc. + Copyright 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. Contributed by Ralph Campbell and OSF Commented and modified by Ian Lance Taylor, Cygnus Support @@ -310,6 +310,9 @@ const struct mips_opcode mips_builtin_opcodes[] = { {"daddiu", "t,r,j", 0x64000000, 0xfc000000, WR_t|RD_s|I3 }, {"daddu", "d,v,t", 0x0000002d, 0xfc0007ff, WR_d|RD_s|RD_t|I3}, {"daddu", "t,r,I", 3, (int) M_DADDU_I, INSN_MACRO }, +/* dctr and dctw are used on the r5000. */ +{"dctr", "o(b)", 0xbc050000, 0xfc1f0000, RD_b|I3 }, +{"dctw", "o(b)", 0xbc090000, 0xfc1f0000, RD_b|I3 }, /* For ddiv, see the comments about div. */ {"ddiv", "z,s,t", 0x0000001e, 0xfc00ffff, RD_s|RD_t|WR_HI|WR_LO|I3 }, {"ddiv", "d,v,t", 3, (int) M_DDIV_3, INSN_MACRO }, @@ -960,10 +963,13 @@ const struct mips_opcode mips_builtin_opcodes[] = { {"cop3", "C", 0, (int) M_COP3, INSN_MACRO }, }; -/* const removed from definition to allow for dynamic extensions to the - * built-in instruction set. */ -const int bfd_mips_num_builtin_opcodes = - ((sizeof mips_builtin_opcodes) / (sizeof (mips_builtin_opcodes[0]))); +#define MIPS_NUM_OPCODES \ + ((sizeof mips_builtin_opcodes) / (sizeof (mips_builtin_opcodes[0]))) +const int bfd_mips_num_builtin_opcodes = MIPS_NUM_OPCODES; -struct mips_opcode *mips_opcodes = 0; -int bfd_mips_num_opcodes = 0; +/* const removed from the following to allow for dynamic extensions to the + * built-in instruction set. */ +struct mips_opcode *mips_opcodes = + (struct mips_opcode *) mips_builtin_opcodes; +int bfd_mips_num_opcodes = MIPS_NUM_OPCODES; +#undef MIPS_NUM_OPCODES -- 2.30.2