From f383de6633cba5ef363eabb486005f1cdb1270f7 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Fri, 27 Aug 2010 13:59:55 +0000 Subject: [PATCH] opcodes/ * ppc-opc.c (powerpc_opcodes) [lswx,lswi,stswx,stswi]: Deprecate on E500 and E500MC. --- binutils/testsuite/binutils-all/needed-reloc.s | 7 +++++++ opcodes/ChangeLog | 5 +++++ opcodes/ppc-opc.c | 8 ++++---- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 binutils/testsuite/binutils-all/needed-reloc.s diff --git a/binutils/testsuite/binutils-all/needed-reloc.s b/binutils/testsuite/binutils-all/needed-reloc.s new file mode 100644 index 00000000000..8251e8c0f8a --- /dev/null +++ b/binutils/testsuite/binutils-all/needed-reloc.s @@ -0,0 +1,7 @@ + .globl foo + + .data + .4byte foo + .text +foo: + .long 1 diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index aa779f4e1dd..416d7bad3c2 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2010-08-27 Nathan Froyd + + * ppc-opc.c (powerpc_opcodes) [lswx,lswi,stswx,stswi]: Deprecate + on E500 and E500MC. + 2010-08-17 H.J. Lu * i386-dis.c (reg_table): Replace Eb with Mb on prefetch and diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 926176f3166..972d3d9e223 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -4420,7 +4420,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"ldbrx", X(31,532), X_MASK, CELL|POWER7|PPCA2, PPCNONE, {RT, RA0, RB}}, -{"lswx", X(31,533), X_MASK, PPCCOM, PPCNONE, {RT, RA0, RB}}, +{"lswx", X(31,533), X_MASK, PPCCOM, E500|E500MC, {RT, RA0, RB}}, {"lsx", X(31,533), X_MASK, PWRCOM, PPCNONE, {RT, RA, RB}}, {"lwbrx", X(31,534), X_MASK, PPCCOM, PPCNONE, {RT, RA0, RB}}, @@ -4466,7 +4466,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"mfsr", X(31,595), XRB_MASK|(1<<20), COM, NON32, {RT, SR}}, -{"lswi", X(31,597), X_MASK, PPCCOM, PPCNONE, {RT, RA0, NB}}, +{"lswi", X(31,597), X_MASK, PPCCOM, E500|E500MC, {RT, RA0, NB}}, {"lsi", X(31,597), X_MASK, PWRCOM, PPCNONE, {RT, RA0, NB}}, {"lwsync", XSYNC(31,598,1), 0xffffffff, PPC, E500, {0}}, @@ -4517,7 +4517,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"stdbrx", X(31,660), X_MASK, CELL|POWER7|PPCA2, PPCNONE, {RS, RA0, RB}}, -{"stswx", X(31,661), X_MASK, PPCCOM, PPCNONE, {RS, RA0, RB}}, +{"stswx", X(31,661), X_MASK, PPCCOM, E500|E500MC, {RS, RA0, RB}}, {"stsx", X(31,661), X_MASK, PWRCOM, PPCNONE, {RS, RA0, RB}}, {"stwbrx", X(31,662), X_MASK, PPCCOM, PPCNONE, {RS, RA0, RB}}, @@ -4559,7 +4559,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { {"addzeo.", XO(31,202,1,1), XORB_MASK, PPCCOM, PPCNONE, {RT, RA}}, {"azeo.", XO(31,202,1,1), XORB_MASK, PWRCOM, PPCNONE, {RT, RA}}, -{"stswi", X(31,725), X_MASK, PPCCOM, PPCNONE, {RS, RA0, NB}}, +{"stswi", X(31,725), X_MASK, PPCCOM, E500|E500MC, {RS, RA0, NB}}, {"stsi", X(31,725), X_MASK, PWRCOM, PPCNONE, {RS, RA0, NB}}, {"sthcx.", XRC(31,726,1), X_MASK, POWER7, PPCNONE, {RS, RA0, RB}}, -- 2.30.2