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 2/8] Add sync for BOOKE and PPC476


sync is both a simple and an extended mnemnonic. We have
sync => sync 0
lwsync => sync 1
ptesync => sync 2

Book-E only defines sync 0 with its symple mnemnonic msync. The other two are
Book-S only.
Without -many the simple mnemnonic is treated as an invalid opcode. I see very
little benefit by throwing patches at the software in order to replace sync
with msync which turns out to be the very same opcode.
The extended form like sync 0 is still invalid for BOOKE in order to avoid
getting opcodes with the L field != 0.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
 opcodes/ppc-opc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index 0e882e7..1b3e344 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -4469,6 +4469,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
 {"ptesync",	XSYNC(31,598,2), 0xffffffff, PPC64,	PPCNONE,	{0}},
 {"sync",	X(31,598),	XSYNC_MASK,  PPCCOM,	BOOKE|PPC476,	{LS}},
 {"msync",	X(31,598),	0xffffffff, BOOKE|PPCA2|PPC476, PPCNONE, {0}},
+{"sync",	X(31,598),	0xffffffff, BOOKE|PPC476, PPCNONE, {0}},
 {"dcs",		X(31,598),	0xffffffff,  PWRCOM,	PPCNONE,	{0}},
 
 {"lfdx",	X(31,599),	X_MASK,      COM,	PPCNONE,	{FRT, RA0, RB}},
-- 
1.7.1


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