summaryrefslogtreecommitdiff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorJames Yang <James.Yang@freescale.com>2013-07-03 21:26:47 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-07 23:59:42 (GMT)
commite1aec18554de5b0c3107c89b5a179fec8f7cc3fe (patch)
tree76417c7ac575ab8e8f5010bcf22ffd89c43c80fd /arch/powerpc/include
parent892da14c9fc16654efa7064c649ca31501ae04fe (diff)
downloadlinux-fsl-qoriq-e1aec18554de5b0c3107c89b5a179fec8f7cc3fe.tar.xz
powerpc: Emulate sync instruction variants
Reserved fields of the sync instruction have been used for other instructions (e.g. lwsync). On processors that do not support variants of the sync instruction, emulate it by executing a sync to subsume the effect of the intended instruction. Signed-off-by: James Yang <James.Yang@freescale.com> [scottwood@freescale.com: whitespace and subject line fix] Signed-off-by: Scott Wood <scottwood@freescale.com> (cherry picked from commit 9863c28a2af90a56c088f5f6288d7f6d2c923c14)
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/ppc-opcode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h
index d7fe9f5..9b997ba 100644
--- a/arch/powerpc/include/asm/ppc-opcode.h
+++ b/arch/powerpc/include/asm/ppc-opcode.h
@@ -143,6 +143,8 @@
#define PPC_INST_LSWX 0x7c00042a
#define PPC_INST_LWARX 0x7c000028
#define PPC_INST_LWSYNC 0x7c2004ac
+#define PPC_INST_SYNC 0x7c0004ac
+#define PPC_INST_SYNC_MASK 0xfc0007fe
#define PPC_INST_LXVD2X 0x7c000698
#define PPC_INST_MCRXR 0x7c000400
#define PPC_INST_MCRXR_MASK 0xfc0007fe