diff options
author | Alan Modra <amodra@gmail.com> | 2012-03-15 12:58:48 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-03-15 12:58:48 +0000 |
commit | b240011aba98dd8a0c4736a51afcea38af814200 (patch) | |
tree | 2cc895e2ccef08761fd87a9fe9fbd164c7520009 /opcodes/disassemble.c | |
parent | fc3e51758a16508acb99feaafd0b63487487bd4f (diff) | |
download | gdb-b240011aba98dd8a0c4736a51afcea38af814200.zip gdb-b240011aba98dd8a0c4736a51afcea38af814200.tar.gz gdb-b240011aba98dd8a0c4736a51afcea38af814200.tar.bz2 |
include/
* dis-asm.h (disassemble_init_powerpc): Declare.
opcodes/
* disassemble.c (disassemble_init_for_target): Handle ppc init.
* ppc-dis.c (private): New var.
(powerpc_init_dialect): Don't return calloc failure, instead use
private.
(PPC_OPCD_SEGS, PPC_OP_TO_SEG): Define.
(powerpc_opcd_indices): New array.
(disassemble_init_powerpc): New function.
(print_insn_big_powerpc): Don't init dialect here.
(print_insn_little_powerpc): Likewise.
(print_insn_powerpc): Start search using powerpc_opcd_indices.
Diffstat (limited to 'opcodes/disassemble.c')
-rw-r--r-- | opcodes/disassemble.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index 0b63135..43e1d53 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -1,6 +1,7 @@ /* Select disassembly routine for specified architecture. Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 + Free Software Foundation, Inc. This file is part of the GNU opcodes library. @@ -566,6 +567,16 @@ disassemble_init_for_target (struct disassemble_info * info) } break; #endif +#ifdef ARCH_powerpc + case bfd_arch_powerpc: +#endif +#ifdef ARCH_rs6000 + case bfd_arch_rs6000: +#endif +#if defined (ARCH_powerpc) || defined (ARCH_rs6000) + disassemble_init_powerpc (info); + break; +#endif default: break; } |