Re: [Qemu-devel] [PATCH 13/32] ppc: Don't update NIP in lswi/lswx/stswi/stswx

2016-07-26 Thread Benjamin Herrenschmidt
On Wed, 2016-07-27 at 12:04 +1000, David Gibson wrote: > On Wed, Jul 27, 2016 at 08:21:07AM +1000, Benjamin Herrenschmidt > wrote: > > 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 p

Re: [Qemu-devel] [PATCH 13/32] ppc: Don't update NIP in lswi/lswx/stswi/stswx

2016-07-26 Thread David Gibson
On Wed, Jul 27, 2016 at 08:21:07AM +1000, Benjamin Herrenschmidt wrote: > 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 subsequen

[Qemu-devel] [PATCH 13/32] ppc: Don't update NIP in lswi/lswx/stswi/stswx

2016-07-26 Thread Benjamin Herrenschmidt
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