This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/8] Add sync for BOOKE and PPC476
- From: Sebastian Andrzej Siewior <sebastian at breakpoint dot cc>
- To: binutils at sourceware dot org
- Cc: Sebastian Andrzej Siewior <sebastian at breakpoint dot cc>
- Date: Sun, 6 Jun 2010 17:22:21 +0200
- Subject: [PATCH 2/8] Add sync for BOOKE and PPC476
- References: <1275837747-13138-1-git-send-email-sebastian@breakpoint.cc>
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