diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-02-25 03:43:46 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-02-25 03:43:46 +0000 |
commit | a9d5049a148ec0a185d61366fc70da42a8adc5ec (patch) | |
tree | c6102f786d429321ef7a39afae0fbace027f305a /opcodes/ppc-dis.c | |
parent | 793b6b815a83d1edabda9b07dcb9e31e245f84e8 (diff) | |
download | gdb-a9d5049a148ec0a185d61366fc70da42a8adc5ec.tar.gz |
* ppc-dis.c (powerpc_dialect): Handle power4 option.
* ppc-opc.c (insert_bdm): Correct description of "at" branch
hints. Test PPC_OPCODE_POWER4 to determine branch hint flavour.
(extract_bdm, insert_bdp, extract_bdp, valid_bo): Likewise.
(BOFM64, BOFP64, BOTM64, BOFP64): Rename to BOFM4, BOFP4 etc.
(BODNZM64, BODNZP64, BODZM64, BODZP64): Likewise.
(PPCCOM32, PPCCOM64): Delete.
(NOPOWER4, POWER4): Define.
(powerpc_opcodes): Replace occurences of PPCCOM32 with NOPOWER4,
and PPCCOM4 with POWER4 so that "at" style branch hint opcodes
are enabled for power4 rather than ppc64.
Diffstat (limited to 'opcodes/ppc-dis.c')
-rw-r--r-- | opcodes/ppc-dis.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 372e9b03c00..0ac8275af22 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 Free Software Foundation, Inc. + Copyright 1994, 1995, 2000, 2001, 2002 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support This file is part of GDB, GAS, and the GNU binutils. @@ -55,6 +55,10 @@ powerpc_dialect(info) else dialect |= PPC_OPCODE_403 | PPC_OPCODE_601; + if (info->disassembler_options + && strcmp (info->disassembler_options, "power4") == 0) + dialect |= PPC_OPCODE_POWER4; + if (info->disassembler_options) { if (strstr (info->disassembler_options, "32") != NULL) |