On Sun, 26 May 2024 at 20:37, Richard Henderson <richard.hender...@linaro.org> wrote: > > Most hosts pass ucontext_t as the third parameter of signal handlers. > > In one existing usage, loongarch64 is using the kernel's > struct ucontext instead of libc's ucontext_t. This is probably a > simple mistake that could be fixed, but the structure member names > differ, so the change would not be completely mechanical. > > However, due to a sequence of historical mistakes, sparc64 linux > does not pass any kind of ucontext_t to the signal handler, but > uses struct sigcontext instead. > > Prepare for that by adding a new indirection typedef. > This allows us to clean up existing usage with void*. > > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > ---
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM