summary refs log tree commit diff stats
path: root/linux-user
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2015-09-12 23:32:30 +0800
committerRiku Voipio <riku.voipio@linaro.org>2015-10-01 11:13:55 +0300
commitd0924a26d8f37ab95fdef99f6850b93e9af3ffb2 (patch)
treeb70e620e9b2a29fb8dfbed98da9dab977cd174a5 /linux-user
parent08703b9f7bcd7ca2152d51a4c8893d26f1dc28de (diff)
downloadfocaccia-qemu-d0924a26d8f37ab95fdef99f6850b93e9af3ffb2.tar.gz
focaccia-qemu-d0924a26d8f37ab95fdef99f6850b93e9af3ffb2.zip
linux-user/signal.c: Use setup_rt_frame() instead of setup_frame() for target openrisc
qemu has already considered about some targets may have no traditional
signals. And openrisc's setup_frame() is dummy, but it can be supported
by setup_rt_frame().

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/signal.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 502efd9fc4..ac82baa0f0 100644
--- a/linux-user/signal.c
+++ b/linux-user/signal.c
@@ -3900,12 +3900,6 @@ static inline abi_ulong get_sigframe(struct target_sigaction *ka,
     return sp;
 }
 
-static void setup_frame(int sig, struct target_sigaction *ka,
-                        target_sigset_t *set, CPUOpenRISCState *env)
-{
-    qemu_log("Not implement.\n");
-}
-
 static void setup_rt_frame(int sig, struct target_sigaction *ka,
                            target_siginfo_t *info,
                            target_sigset_t *set, CPUOpenRISCState *env)
@@ -5662,7 +5656,8 @@ void process_pending_signals(CPUArchState *cpu_env)
         }
 #endif
         /* prepare the stack frame of the virtual CPU */
-#if defined(TARGET_ABI_MIPSN32) || defined(TARGET_ABI_MIPSN64)
+#if defined(TARGET_ABI_MIPSN32) || defined(TARGET_ABI_MIPSN64) \
+    || defined(TARGET_OPENRISC)
         /* These targets do not have traditional signals.  */
         setup_rt_frame(sig, sa, &q->info, &target_old_set, cpu_env);
 #else