Re: [PATCH v5 02/17] linux-user/signal.c: Create a common rewind_if_in_safe_syscall

2021-11-17 Thread Alex Bennée
Richard Henderson writes: > From: Warner Losh > > All instances of rewind_if_in_safe_syscall are the same, differing only > in how the instruction point is fetched from the ucontext and the size > of the registers. Use host_signal_pc and new host_signal_set_pc > interfaces to fetch the

Re: [PATCH v5 02/17] linux-user/signal.c: Create a common rewind_if_in_safe_syscall

2021-11-17 Thread Warner Losh
On Wed, Nov 17, 2021 at 9:04 AM Richard Henderson < richard.hender...@linaro.org> wrote: > From: Warner Losh > > All instances of rewind_if_in_safe_syscall are the same, differing only > in how the instruction point is fetched from the ucontext and the size > of the registers. Use host_signal_pc

[PATCH v5 02/17] linux-user/signal.c: Create a common rewind_if_in_safe_syscall

2021-11-17 Thread Richard Henderson
From: Warner Losh All instances of rewind_if_in_safe_syscall are the same, differing only in how the instruction point is fetched from the ucontext and the size of the registers. Use host_signal_pc and new host_signal_set_pc interfaces to fetch the pointer to the PC and adjust if needed. Delete