This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Enable mftb, mtsr and mfsr instructions on 750cl


gas reports some instructions that exist on powerpc 750cl are
undefined because the NON32 and NO371 defines in opcodes/ppc-opc.c
include PPC_OPCODE_PPCPS.

monalisa:binutils-cvs davem$ grep NON32 opcodes/ppc-opc.c
#define NON32	(PPC_OPCODE_64 | PPC_OPCODE_POWER4	\
{"mtsr",	X(31,210), XRB_MASK|(1<<20), COM,	NON32,  	{SR, RS}},
{"mtsrin",	X(31,242),	XRA_MASK,    PPC,	NON32,  	{RS, RB}},
{"mtsri",	X(31,242),	XRA_MASK,    POWER,	NON32,		{RS, RB}},
{"mfsr",	X(31,595), XRB_MASK|(1<<20), COM,	NON32,  	{RT, SR}},
{"mfsrin",	X(31,659),	XRA_MASK,    PPC,	NON32,  	{RT, RB}},
monalisa:binutils-cvs davem$ grep NO371 opcodes/ppc-opc.c
#define NO371	PPC_OPCODE_BOOKE | PPC_OPCODE_EFS
{"mftbl",	XSPR(31,371,268), XSPR_MASK, PPC,	NO371,		{RT}},
{"mftbu",	XSPR(31,371,269), XSPR_MASK, PPC,	NO371,		{RT}},
{"mftb",	X(31,371),	X_MASK,      PPC|PPCA2,	NO371|POWER7,	{RT, TBR}},

I think the attached patch is correct.

2011-01-20  Dave Murphy  <davem@devkitpro.org>

       * opcodes/ppc-opc.c remove PPC_OPCODE_PPCPS from NON32 and NO371 defines.


Dave

Attachment: ppcps_instructions.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]