All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: laurent@vivier.eu
Subject: [PATCH v3 22/25] linux-user/s390x: Use force_sig_fault
Date: Sat, 18 Sep 2021 18:57:15 -0700	[thread overview]
Message-ID: <20210919015718.466207-23-richard.henderson@linaro.org> (raw)
In-Reply-To: <20210919015718.466207-1-richard.henderson@linaro.org>

Use the new function instead of setting up a target_siginfo_t
and calling queue_signal.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 linux-user/s390x/cpu_loop.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/linux-user/s390x/cpu_loop.c b/linux-user/s390x/cpu_loop.c
index 7a1d032227..cc034b860e 100644
--- a/linux-user/s390x/cpu_loop.c
+++ b/linux-user/s390x/cpu_loop.c
@@ -57,7 +57,6 @@ void cpu_loop(CPUS390XState *env)
 {
     CPUState *cs = env_cpu(env);
     int trapnr, n, sig;
-    target_siginfo_t info;
     target_ulong addr;
     abi_long ret;
 
@@ -157,11 +156,7 @@ void cpu_loop(CPUS390XState *env)
              */
             env->psw.addr += env->int_pgm_ilen;
         do_signal:
-            info.si_signo = sig;
-            info.si_errno = 0;
-            info.si_code = n;
-            info._sifields._sigfault._addr = addr;
-            queue_signal(env, info.si_signo, QEMU_SI_FAULT, &info);
+            force_sig_fault(sig, n, addr);
             break;
 
         case EXCP_ATOMIC:
-- 
2.25.1



  parent reply	other threads:[~2021-09-19  2:17 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-19  1:56 [PATCH v3 00/25] linux-user: Clean up siginfo_t handling Richard Henderson
2021-09-19  1:56 ` [PATCH v3 01/25] linux-user/arm: Use force_sig_fault() Richard Henderson
2021-09-19  1:56 ` [PATCH v3 02/25] linux-user/aarch64: " Richard Henderson
2021-09-19  1:56 ` [PATCH v3 03/25] linux-user/alpha: Set TRAP_UNK for bugchk and unknown gentrap Richard Henderson
2021-09-19  1:56 ` [PATCH v3 04/25] linux-user/alpha: Set FPE_FLTUNK for gentrap ROPRAND Richard Henderson
2021-09-19  1:56 ` [PATCH v3 05/25] linux-user/alpha: Use force_sig_fault Richard Henderson
2021-09-19  1:56 ` [PATCH v3 06/25] linux-user/cris: " Richard Henderson
2021-09-19  1:57 ` [PATCH v3 07/25] linux-user/hppa: " Richard Henderson
2021-09-19  1:57 ` [PATCH v3 08/25] linux-user/hppa: Use the proper si_code for PRIV_OPR, PRIV_REG, OVERFLOW Richard Henderson
2021-09-19  1:57 ` [PATCH v3 09/25] linux-user/hppa: Set FPE_CONDTRAP for COND Richard Henderson
2021-09-19  1:57 ` [PATCH v3 10/25] linux-user/i386: Split out maybe_handle_vm86_trap Richard Henderson
2021-09-19  1:57 ` [PATCH v3 11/25] linux-user/i386: Use force_sig, force_sig_fault Richard Henderson
2021-09-19  1:57 ` [PATCH v3 12/25] linux-user/m68k: Use force_sig_fault Richard Henderson
2021-09-19  1:57 ` [PATCH v3 13/25] linux-user/microblaze: " Richard Henderson
2021-09-19  1:57 ` [PATCH v3 14/25] linux-user/microblaze: Fix SIGFPE si_codes Richard Henderson
2021-09-19  1:57 ` [PATCH v3 15/25] linux-user/mips: Improve do_break Richard Henderson
2021-09-19  1:57 ` [PATCH v3 16/25] linux-user/mips: Use force_sig_fault Richard Henderson
2021-09-19  1:57 ` [PATCH v3 17/25] target/mips: Extract break code into env->error_code Richard Henderson
2021-09-19  1:57 ` [PATCH v3 18/25] target/mips: Extract trap " Richard Henderson
2021-09-19  1:57 ` [PATCH v3 19/25] linux-user/openrisc: Use force_sig_fault Richard Henderson
2021-09-19  1:57 ` [PATCH v3 20/25] linux-user/ppc: " Richard Henderson
2021-09-19  1:57 ` [PATCH v3 21/25] linux-user/riscv: " Richard Henderson
2021-09-19  1:57 ` Richard Henderson [this message]
2021-09-19  1:57 ` [PATCH v3 23/25] linux-user/sh4: " Richard Henderson
2021-09-19  1:57 ` [PATCH v3 24/25] linux-user/sparc: " Richard Henderson
2021-09-19  1:57 ` [PATCH v3 25/25] linux-user/xtensa: " Richard Henderson
2021-09-19 16:34 ` [PATCH v3 00/25] linux-user: Clean up siginfo_t handling Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210919015718.466207-23-richard.henderson@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.