Re: [PATCH] powerpc: improve ppc_save_regs

2020-04-06 Thread Michael Ellerman
On Fri, 2020-04-03 at 13:10:05 UTC, Nicholas Piggin wrote: > Make ppc_save_regs a bit more useful: > - Set NIP to our caller rather rather than the caller's caller (which is > what we save to LR in the stack frame). > - Set SOFTE to the current irq soft-mask state rather than > uninitialised. >

[PATCH] powerpc: improve ppc_save_regs

2020-04-03 Thread Nicholas Piggin
Make ppc_save_regs a bit more useful: - Set NIP to our caller rather rather than the caller's caller (which is what we save to LR in the stack frame). - Set SOFTE to the current irq soft-mask state rather than uninitialised. - Zero CFAR rather than leave it uninitialised. In qemu, injecting a