aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-04-20 22:15:32 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-04-20 22:15:32 +0000
commit4d85706b80e7cd6f57188f78339e00f44d4da27a (patch)
tree5a59afefe565b58c6cf894c94d1502bcf1c9b61a /opcodes
parent41c49b06c471443d3baf2eaa2463a315f9b5edca (diff)
downloadbinutils-4d85706b80e7cd6f57188f78339e00f44d4da27a.zip
binutils-4d85706b80e7cd6f57188f78339e00f44d4da27a.tar.gz
binutils-4d85706b80e7cd6f57188f78339e00f44d4da27a.tar.bz2
* m10300-dis.c (HAVE_AM30, HAVE_AM33): Define.
(disassemble): Use them.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/m10300-dis.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index f8b5b3d..8c529a8 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
+
+ * m10300-dis.c (HAVE_AM30, HAVE_AM33): Define.
+ (disassemble): Use them.
+
2000-04-14 Alan Modra <alan@linuxcare.com.au>
* sysdep.h: Include "ansidecl.h" not <ansidecl.h>
diff --git a/opcodes/m10300-dis.c b/opcodes/m10300-dis.c
index 1346b69..554d328 100644
--- a/opcodes/m10300-dis.c
+++ b/opcodes/m10300-dis.c
@@ -26,6 +26,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
static void disassemble PARAMS ((bfd_vma, struct disassemble_info *,
unsigned long insn, unsigned int));
+#define HAVE_AM33 (info->mach == AM33)
+#define HAVE_AM30 (info->mach == AM30)
+
int
print_insn_mn10300 (memaddr, info)
bfd_vma memaddr;
@@ -250,7 +253,8 @@ disassemble (memaddr, info, insn, size)
if ((op->mask & insn) == op->opcode
&& size == (unsigned int) mysize
&& (op->machine == 0
- || op->machine == info->mach))
+ || (op->machine == AM33 && HAVE_AM33)
+ || (op->machine == AM30 && HAVE_AM30)))
{
const unsigned char *opindex_ptr;
unsigned int nocomma;