diff options
author | Alan Modra <amodra@gmail.com> | 2002-02-25 03:43:46 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-02-25 03:43:46 +0000 |
commit | 94efba1253f92f228fecb86fb0329c41a3721b62 (patch) | |
tree | e6c8b677f7dbbccad9cba30af1aff47cd6f9b59e /opcodes/ppc-dis.c | |
parent | fc1e712166469fc3c3f3d6877126b20af7a01d76 (diff) | |
download | gdb-94efba1253f92f228fecb86fb0329c41a3721b62.zip gdb-94efba1253f92f228fecb86fb0329c41a3721b62.tar.gz gdb-94efba1253f92f228fecb86fb0329c41a3721b62.tar.bz2 |
* 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 372e9b0..0ac8275 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) |