summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-04-20 22:16:12 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-04-20 22:16:12 +0000
commitc517f3f4260716a935d06ac81c8d166a82f3683c (patch)
tree3946290853cf222d0d59bfda1ffe9cd4f1b2e4e5
parentc731b0b0756755ae93c00d5782aac2e3b73a888c (diff)
downloadgdb-c517f3f4260716a935d06ac81c8d166a82f3683c.tar.gz
* m10300-dis.c (HAVE_AM30, HAVE_AM33): Define.
(disassemble): Use them.
-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 401e1cff4c3..c1c5a200138 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-04 Alan Modra <alan@linuxcare.com.au>
* po/opcodes.pot: Regenerate.
diff --git a/opcodes/m10300-dis.c b/opcodes/m10300-dis.c
index 7d7f74c947f..1d095e65c65 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;