ppc: Don't update NIP in lswi/lswx/stswi/stswx
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 27 Jul 2016 06:56:30 +0000 (16:56 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 7 Sep 2016 02:37:48 +0000 (12:37 +1000)
commite41029b378b4a65a0b89b5a8dc087aca6b5d012d
tree86fc95b9bd375b3644c91e480cba440d1d775c54
parent1b7d17cae4c31e7cf16abd7036f5a5ca5dee8c57
ppc: Don't update NIP in lswi/lswx/stswi/stswx

Instead, pass GETPC() result to the corresponding helpers. This
requires a bit of fiddling to get the PC (hopefully) right in
the case where we generate a program check, though the hacks there
are temporary, a subsequent patch will clean this all up by always
having the nip already set to the right instruction when taking
the fault.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[dwg: Fix trivial checkpatch warning]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/excp_helper.c
target-ppc/mem_helper.c
target-ppc/translate.c