diff options
author | Laurent Vivier <laurent@vivier.eu> | 2018-04-02 12:24:52 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2018-04-03 11:50:15 +0200 |
commit | 5de154e82f4e507084f6c12b4ee300221ce078ce (patch) | |
tree | 2d0095bff464c9b0c2454ff66d913ec4f9b80991 /linux-user/signal.c | |
parent | 95a29a4e3edb3eabde37587b2bcc9d4874c5306f (diff) | |
download | qemu-5de154e82f4e507084f6c12b4ee300221ce078ce.zip qemu-5de154e82f4e507084f6c12b4ee300221ce078ce.tar.gz qemu-5de154e82f4e507084f6c12b4ee300221ce078ce.tar.bz2 |
linux-user: define TARGET_ARCH_HAS_KA_RESTORER
Sparc as an extended sigaction structure containing
the field ka_restorer used in place of sa_restorer.
Define TARGET_ARCH_HAS_KA_RESTORER and use it
with sparc.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180402102453.9883-2-laurent@vivier.eu>
Diffstat (limited to 'linux-user/signal.c')
-rw-r--r-- | linux-user/signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index 9399f0e..5febe6a 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -2920,8 +2920,8 @@ static void setup_frame(int sig, struct target_sigaction *ka, env->pc = ka->_sa_handler; env->npc = (env->pc + 4); /* 5. return to kernel instructions */ - if (ka->sa_restorer) { - env->regwptr[UREG_I7] = ka->sa_restorer; + if (ka->ka_restorer) { + env->regwptr[UREG_I7] = ka->ka_restorer; } else { uint32_t val32; |