powerpc: Emulate sync instruction variants
authorJames Yang <James.Yang@freescale.com>
Wed, 3 Jul 2013 21:26:47 +0000 (16:26 -0500)
committerScott Wood <scottwood@freescale.com>
Wed, 16 Oct 2013 23:51:18 +0000 (18:51 -0500)
commit9863c28a2af90a56c088f5f6288d7f6d2c923c14
tree8c78c0eec82bcb7f1c2fd616c3a3c5f25f508588
parentc58ce397a62ec14b7b06c407a4173ed667e20d5f
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>
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/kernel/traps.c