* 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.
This commit is contained in:
Alan Modra
2002-02-25 03:43:46 +00:00
parent fc1e712166
commit 94efba1253
3 changed files with 334 additions and 314 deletions

View File

@@ -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)