aboutsummaryrefslogtreecommitdiff
path: root/opcodes/disassemble.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-01-31 17:33:08 +0000
committerNick Clifton <nickc@redhat.com>2002-01-31 17:33:08 +0000
commit3b16e843f2a75ccf8e7ecc5102e1217a122a05ad (patch)
tree683e5fc887a3f4f43c06e85a8e1f6c68c0a63f92 /opcodes/disassemble.c
parent6d9c411afd0301f0262ff63d6dc59dac38f58e63 (diff)
downloadgdb-3b16e843f2a75ccf8e7ecc5102e1217a122a05ad.zip
gdb-3b16e843f2a75ccf8e7ecc5102e1217a122a05ad.tar.gz
gdb-3b16e843f2a75ccf8e7ecc5102e1217a122a05ad.tar.bz2
Add support for OpenRISC 32-bit embedded processor
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r--opcodes/disassemble.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index ab23635..c8690ed 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -1,5 +1,5 @@
/* Select disassembly routine for specified architecture.
- Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -49,6 +49,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define ARCH_mn10300
#define ARCH_ns32k
#define ARCH_openrisc
+#define ARCH_or32
#define ARCH_pdp11
#define ARCH_pj
#define ARCH_powerpc
@@ -235,6 +236,14 @@ disassembler (abfd)
disassemble = print_insn_openrisc;
break;
#endif
+#ifdef ARCH_or32
+ case bfd_arch_or32:
+ if (bfd_big_endian (abfd))
+ disassemble = print_insn_big_or32;
+ else
+ disassemble = print_insn_little_or32;
+ break;
+#endif
#ifdef ARCH_pdp11
case bfd_arch_pdp11:
disassemble = print_insn_pdp11;