Re: [PATCH v6 02/16] linux-user/host/ppc64: Use r11 for signal_pending address

2021-11-29 Thread Richard Henderson
On 11/29/21 12:01 PM, Peter Maydell wrote: On Tue, 23 Nov 2021 at 17:40, Richard Henderson wrote: We don't need a register that can live across the syscall; we only need a register that can live until the syscall. What about the case where: * we execute the sc instruction (r11 trashed) *

Re: [PATCH v6 02/16] linux-user/host/ppc64: Use r11 for signal_pending address

2021-11-29 Thread Peter Maydell
On Tue, 23 Nov 2021 at 17:40, Richard Henderson wrote: > > We don't need a register that can live across the syscall; > we only need a register that can live until the syscall. What about the case where: * we execute the sc instruction (r11 trashed) * the syscall is one that from the host kerne

[PATCH v6 02/16] linux-user/host/ppc64: Use r11 for signal_pending address

2021-11-23 Thread Richard Henderson
We don't need a register that can live across the syscall; we only need a register that can live until the syscall. Use call-clobbered r11 instead of call-saved r14. Eliminate the save and restore of r14 from the stack frame. Signed-off-by: Richard Henderson --- linux-user/host/ppc64/safe-syscal