mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
linux-user: Introduce host_sigcontext
Do not directly access ucontext_t as the third signal parameter. This is preparation for a sparc64 fix. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
c8c89a6a30
commit
9940799bde
12 changed files with 80 additions and 47 deletions
|
@ -800,7 +800,7 @@ void queue_signal(CPUArchState *env, int sig, int si_type,
|
|||
/* Adjust the signal context to rewind out of safe-syscall if we're in it */
|
||||
static inline void rewind_if_in_safe_syscall(void *puc)
|
||||
{
|
||||
ucontext_t *uc = (ucontext_t *)puc;
|
||||
host_sigcontext *uc = (host_sigcontext *)puc;
|
||||
uintptr_t pcreg = host_signal_pc(uc);
|
||||
|
||||
if (pcreg > (uintptr_t)safe_syscall_start
|
||||
|
@ -815,7 +815,7 @@ static void host_signal_handler(int host_sig, siginfo_t *info, void *puc)
|
|||
CPUState *cpu = env_cpu(env);
|
||||
TaskState *ts = cpu->opaque;
|
||||
target_siginfo_t tinfo;
|
||||
ucontext_t *uc = puc;
|
||||
host_sigcontext *uc = puc;
|
||||
struct emulated_sigtable *k;
|
||||
int guest_sig;
|
||||
uintptr_t pc = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue