* [Qemu-devel] [PATCH] linux-user/signal.c: Use setup_rt_frame() instead of setup_frame() for target openrisc
@ 2015-09-12 15:32 gang.chen.5i5j
2015-09-12 16:23 ` Peter Maydell
0 siblings, 1 reply; 3+ messages in thread
From: gang.chen.5i5j @ 2015-09-12 15:32 UTC (permalink / raw)
To: riku.voipio, peter.maydell; +Cc: Chen Gang, qemu-devel, xili_gchen_5257, rth
From: Chen Gang <gang.chen.5i5j@gmail.com>
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().
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
linux-user/signal.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/linux-user/signal.c b/linux-user/signal.c
index 502efd9..ac82baa 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
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] linux-user/signal.c: Use setup_rt_frame() instead of setup_frame() for target openrisc
2015-09-12 15:32 [Qemu-devel] [PATCH] linux-user/signal.c: Use setup_rt_frame() instead of setup_frame() for target openrisc gang.chen.5i5j
@ 2015-09-12 16:23 ` Peter Maydell
2015-09-12 22:00 ` Chen Gang
0 siblings, 1 reply; 3+ messages in thread
From: Peter Maydell @ 2015-09-12 16:23 UTC (permalink / raw)
To: Chen Gang; +Cc: Riku Voipio, QEMU Developers, Chen Gang, Richard Henderson
On 12 September 2015 at 16:32, <gang.chen.5i5j@gmail.com> wrote:
> From: Chen Gang <gang.chen.5i5j@gmail.com>
>
> 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().
>
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
> ---
> linux-user/signal.c | 9 ++-------
> 1 file changed, 2 insertions(+), 7 deletions(-)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] linux-user/signal.c: Use setup_rt_frame() instead of setup_frame() for target openrisc
2015-09-12 16:23 ` Peter Maydell
@ 2015-09-12 22:00 ` Chen Gang
0 siblings, 0 replies; 3+ messages in thread
From: Chen Gang @ 2015-09-12 22:00 UTC (permalink / raw)
To: Peter Maydell, Chen Gang
Cc: Chris Metcalf, Riku Voipio, QEMU Developers, Richard Henderson
On 9/13/15 00:23, Peter Maydell wrote:
> On 12 September 2015 at 16:32, <gang.chen.5i5j@gmail.com> wrote:
>> From: Chen Gang <gang.chen.5i5j@gmail.com>
>>
>> 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().
>>
>> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
>> ---
>> linux-user/signal.c | 9 ++-------
>> 1 file changed, 2 insertions(+), 7 deletions(-)
>
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
>
Thank you very much.
I am just analyzing the raise insn about tilegx, and shall implement the
related code in signal.c, your Reviewed-by is very helpful for it. :-)
Thanks.
--
Chen Gang (陈刚)
Open, share, and attitude like air, water, and life which God blessed
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-12 21:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-12 15:32 [Qemu-devel] [PATCH] linux-user/signal.c: Use setup_rt_frame() instead of setup_frame() for target openrisc gang.chen.5i5j
2015-09-12 16:23 ` Peter Maydell
2015-09-12 22:00 ` Chen Gang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).