diff options
author | Nick Clifton <nickc@redhat.com> | 2002-01-31 17:33:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-01-31 17:33:08 +0000 |
commit | b59833a416d9944fb6ba0040854ee18a9234a7ae (patch) | |
tree | 29cf597d40b4a38b0ac1f2c8519c9cddc8db253a /opcodes/disassemble.c | |
parent | b27355e007d5bbfe3f3b5aae541f0022230759fa (diff) | |
download | gdb-b59833a416d9944fb6ba0040854ee18a9234a7ae.tar.gz |
Add support for OpenRISC 32-bit embedded processor
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r-- | opcodes/disassemble.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index ab23635016a..c8690ed649f 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; |