[PATCH] ppc64: Enable icswx instructions for POWER7

Anton Blanchard anton@samba.org
Sat Apr 16 05:43:00 GMT 2011


Hi,

The POWER7 processor supports icswx, so the patch below enables it.

Anton
--

2011-04-16  Anton Blanchard  <anton@samba.org>

	* ppc-opc.c (powerpc_opcodes): Enable icswx for POWER7.


diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index f877a54..a263206 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -4124,8 +4124,8 @@ const struct powerpc_opcode powerpc_opcodes[] = {
 
 {"slbmte",	X(31,402),	XRA_MASK,    PPC64,	PPCNONE,	{RS, RB}},
 
-{"icswx",	XRC(31,406,0),	X_MASK,      PPCA2,	PPCNONE,	{RS, RA, RB}},
-{"icswx.",	XRC(31,406,1),	X_MASK,      PPCA2,	PPCNONE,	{RS, RA, RB}},
+{"icswx",	XRC(31,406,0),	X_MASK,   POWER7|PPCA2,	PPCNONE,	{RS, RA, RB}},
+{"icswx.",	XRC(31,406,1),	X_MASK,   POWER7|PPCA2,	PPCNONE,	{RS, RA, RB}},
 
 {"sthx",	X(31,407),	X_MASK,      COM,	PPCNONE,	{RS, RA0, RB}},
 



More information about the Binutils mailing list