qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 16/30] bsd-user/signal.c: host_to_target_siginfo_noswap


From: Richard Henderson
Subject: Re: [PATCH 16/30] bsd-user/signal.c: host_to_target_siginfo_noswap
Date: Mon, 24 Jan 2022 13:05:52 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

On 1/10/22 3:19 AM, Warner Losh wrote:
+static inline void host_to_target_siginfo_noswap(target_siginfo_t *tinfo,
+        const siginfo_t *info)
+{
+    int sig, code;
+
+    sig = host_to_target_signal(info->si_signo);

You now have a target signo, so...

+    if (SIGILL == sig || SIGFPE == sig || SIGSEGV == sig || SIGBUS == sig ||
+            SIGTRAP == sig) {

... you need TARGET_SIGFOO in the comparision.

Though, really, I think the categorization that Peter suggested is a better way to structure this.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]