ppc: restrict the use of the rfi instruction
commit6ca038c292d9274dc224d401a1ba16eb5a1dd501
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Sep 2016 07:32:42 +0000 (8 09:32 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 23 Sep 2016 00:29:40 +0000 (23 10:29 +1000)
tree7e0fc7690917ffaa0a4858c1b4b3ac6d20915c97
parentb5d55020471aa426701938eb826193e95c43b515
ppc: restrict the use of the rfi instruction

Power ISA 2.x has deleted the rfi instruction and rfid shoud be used
instead on cpus following this instruction set or later.

This will raise an invalid exception when rfi is used on such
processors: Book3S 64-bit processors.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
[clg: the required fix in openbios, commit b747b6acc272 ('ppc: use
      rfid when running under a CPU from the 970 family.'), is now
      merged in qemu under commit 5cebd885d0d2 ('Update OpenBIOS
      images to b747b6a built from submodule.') ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/translate.c