diff options
author | Nick Clifton <nickc@redhat.com> | 2007-02-02 12:37:41 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-02-02 12:37:41 +0000 |
commit | 64a3a6fcf976dc8e2af363fc5ff6a66f82964dd3 (patch) | |
tree | c78e5b01392c2050a704da219b803d56bf56b049 /opcodes | |
parent | 99b3d57478fc85862a69b64bd2752d0bb9dfd5e7 (diff) | |
download | gdb-64a3a6fcf976dc8e2af363fc5ff6a66f82964dd3.zip gdb-64a3a6fcf976dc8e2af363fc5ff6a66f82964dd3.tar.gz gdb-64a3a6fcf976dc8e2af363fc5ff6a66f82964dd3.tar.bz2 |
* ppc-dis.c (powerpc_dialect): Handle ppc440.
* ppc-dis.c (print_ppc_disassembler_options): Note the -M440 can be used.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 6 | ||||
-rw-r--r-- | opcodes/ppc-dis.c | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 36e30ae..a7db87f 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2007-02-02 Hiroki Kaminaga <kaminaga@sm.sony.co.jp> + + * ppc-dis.c (powerpc_dialect): Handle ppc440. + * ppc-dis.c (print_ppc_disassembler_options): Note the -M440 can + be used. + 2007-02-02 Alan Modra <amodra@bigpond.net.au> * ppc-opc.c (insert_bdm): -Many comment. diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index d144892..691c2f6 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -1,5 +1,5 @@ /* ppc-dis.c -- Disassemble PowerPC instructions - Copyright 1994, 1995, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Copyright 1994, 1995, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support @@ -61,6 +61,10 @@ powerpc_dialect (struct disassemble_info *info) else if (info->disassembler_options && strstr (info->disassembler_options, "e300") != NULL) dialect |= PPC_OPCODE_E300 | PPC_OPCODE_CLASSIC | PPC_OPCODE_COMMON; + else if (info->disassembler_options + && strstr (info->disassembler_options, "440") != NULL) + dialect |= PPC_OPCODE_BOOKE | PPC_OPCODE_32 + | PPC_OPCODE_440 | PPC_OPCODE_ISEL | PPC_OPCODE_RFMCI; else dialect |= (PPC_OPCODE_403 | PPC_OPCODE_601 | PPC_OPCODE_CLASSIC | PPC_OPCODE_COMMON | PPC_OPCODE_ALTIVEC); @@ -311,6 +315,7 @@ the -M switch:\n"); fprintf (stream, " booke|booke32|booke64 Disassemble the BookE instructions\n"); fprintf (stream, " e300 Disassemble the e300 instructions\n"); fprintf (stream, " e500|e500x2 Disassemble the e500 instructions\n"); + fprintf (stream, " 440 Disassemble the 440 instructions\n"); fprintf (stream, " efs Disassemble the EFS instructions\n"); fprintf (stream, " power4 Disassemble the Power4 instructions\n"); fprintf (stream, " power5 Disassemble the Power5 instructions\n"); |