target-ppc: gen_pause for instructions: yield, mdoio, mdoom, miso
commit9e196938aa1c0517f81139bda0f2f26e0347c64e
authorAaron Larson <alarson@ddci.com>
Fri, 24 Jun 2016 20:18:28 +0000 (24 13:18 -0700)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 1 Jul 2016 03:41:47 +0000 (1 13:41 +1000)
tree66263f23a196ab14f91d7ecb1c3d23b3633483d6
parent27f2458245e259618beb2635abccf00286ea8b2d
target-ppc: gen_pause for instructions: yield, mdoio, mdoom, miso

Call gen_pause for all "or rx,rx,rx" encodings other nop.  This
provides a reasonable implementation for yield, and a better
approximation for mdoio, mdoom, and miso.  The choice to pause for all
encodings !=0 leverages the PowerISA admonition that the reserved
encodings might change program priority, providing a slight "future
proofing".

Signed-off-by: Aaron Larson <alarson@ddci.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/translate.c