qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 48c8c5: linux-user: Remove dead code


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 48c8c5: linux-user: Remove dead code
Date: Tue, 18 May 2021 13:18:45 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 48c8c5e8862431235ec5ab553977ee5fe6ffbba7
      
https://github.com/qemu/qemu/commit/48c8c5e8862431235ec5ab553977ee5fe6ffbba7
  Author: Philippe Mathieu-Daudé <f4bug@amsat.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/main.c

  Log Message:
  -----------
  linux-user: Remove dead code

We can not use watchpoints in user-mode emulation because we
need the softmmu slow path to detect accesses to watchpointed
memory. This code is expanded as empty stub in "hw/core/cpu.h"
anyway, so we can drop it.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210303214708.1727801-18-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 5847d3098d92851015e0f0c868e1305103feae02
      
https://github.com/qemu/qemu/commit/5847d3098d92851015e0f0c868e1305103feae02
  Author: Matus Kysel <mkysel@tachyum.com>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/strace.c
    M linux-user/strace.list

  Log Message:
  -----------
  linux-user: strace now handles unshare syscall args correctly

Syscall unshare did not have custom print function for strace, but it's 
argument is same as flags in clone syscall, so it can be easily implemented.
Also updated missing flags from clone_flags.

Signed-off-by: Matus Kysel <mkysel@tachyum.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210406144203.1020598-1-mkysel@tachyum.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: c1438d6c02eae03cc387dbdf2f30c11f45894954
      
https://github.com/qemu/qemu/commit/c1438d6c02eae03cc387dbdf2f30c11f45894954
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/arm/cpu_loop.c

  Log Message:
  -----------
  linux-user/arm: Split out emulate_arm_fpa11

Pull out the fpa11 emulation to a helper function.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210423165413.338259-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: d827f6d5fdb0826e17c80f63547c5c2dee3f0fac
      
https://github.com/qemu/qemu/commit/d827f6d5fdb0826e17c80f63547c5c2dee3f0fac
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/arm/cpu_loop.c

  Log Message:
  -----------
  linux-user/arm: Do not emulate fpa11 in thumb mode

These antiquated instructions are arm-mode only.

Buglink: https://bugs.launchpad.net/bugs/1925512
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210423165413.338259-3-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 0a50285ee8bf471936325f5ccd870752d2a038cb
      
https://github.com/qemu/qemu/commit/0a50285ee8bf471936325f5ccd870752d2a038cb
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/arm/cpu_loop.c

  Log Message:
  -----------
  linux-user/arm: Do not fill in si_code for fpa11 exceptions

There is no such decoding in linux/arch/arm/nwfpe/fpmodule.c.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210423165413.338259-4-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 74081ae0ff4aea6ad0db0427ed31ac5250a58b3f
      
https://github.com/qemu/qemu/commit/74081ae0ff4aea6ad0db0427ed31ac5250a58b3f
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/arm/cpu_loop.c

  Log Message:
  -----------
  linux-user/arm: Simplify accumulating and raising fpa11 exceptions

Use bit masking instead of an if tree.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210423165413.338259-5-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 9f771ad8399d5832a99564919379ab29c1bbbdce
      
https://github.com/qemu/qemu/commit/9f771ad8399d5832a99564919379ab29c1bbbdce
  Author: Kito Cheng <kito.cheng@sifive.com>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/strace.c
    M linux-user/strace.list

  Log Message:
  -----------
  linux-user: Add strace support for printing arguments of llseek

Some target are using llseek instead of _llseek like riscv,
nios2, hexagon, and openrisc.

Signed-off-by: Kito Cheng <kito.cheng@sifive.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210512101358.122781-1-kito.cheng@sifive.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 92bad948367c4b8a58f6bb81b45750f1d583f274
      
https://github.com/qemu/qemu/commit/92bad948367c4b8a58f6bb81b45750f1d583f274
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/signal-common.h
    M linux-user/signal.c

  Log Message:
  -----------
  linux-user: Split out target_restore_altstack

Create a function to match target_save_altstack.
Fix some style and unlock issues in do_sigaltstack.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 56384cf3adaeb15bab479be328605e301ae253f2
      
https://github.com/qemu/qemu/commit/56384cf3adaeb15bab479be328605e301ae253f2
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/aarch64/signal.c
    M linux-user/alpha/signal.c
    M linux-user/arm/signal.c
    M linux-user/hexagon/signal.c
    M linux-user/hppa/signal.c
    M linux-user/i386/signal.c
    M linux-user/m68k/signal.c
    M linux-user/microblaze/signal.c
    M linux-user/mips/signal.c
    M linux-user/nios2/signal.c
    M linux-user/openrisc/signal.c
    M linux-user/ppc/signal.c
    M linux-user/riscv/signal.c
    M linux-user/s390x/signal.c
    M linux-user/sh4/signal.c
    M linux-user/xtensa/signal.c

  Log Message:
  -----------
  linux-user: Use target_restore_altstack in all sigreturn

Note that target_restore_altstack uses the host memory
pointer that we have already verified, so TARGET_EFAULT
is not a possible return value.

Note that using -EFAULT was a bug.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-3-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 6b2087550345e87320f777c4db8254323d0d4123
      
https://github.com/qemu/qemu/commit/6b2087550345e87320f777c4db8254323d0d4123
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/qemu.h
    M linux-user/signal.c
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Pass CPUArchState to do_sigaltstack

Now that we have exactly one call, it's easy to pass
in env instead of passing in the sp value.
Use target_save_altstack, which required env.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-4-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: ddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0
      
https://github.com/qemu/qemu/commit/ddc3e74d9c5ac76562ce8abe9e5908c4ff7cb8f0
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/aarch64/signal.c
    M linux-user/alpha/signal.c
    M linux-user/arm/signal.c
    M linux-user/hexagon/signal.c
    M linux-user/hppa/signal.c
    M linux-user/i386/signal.c
    M linux-user/m68k/signal.c
    M linux-user/microblaze/signal.c
    M linux-user/mips/signal.c
    M linux-user/nios2/signal.c
    M linux-user/openrisc/signal.c
    M linux-user/ppc/signal.c
    M linux-user/riscv/signal.c
    M linux-user/s390x/signal.c
    M linux-user/sh4/signal.c
    M linux-user/signal-common.h
    M linux-user/signal.c
    M linux-user/xtensa/signal.c

  Log Message:
  -----------
  linux-user: Pass CPUArchState to target_restore_altstack

In most cases we were already passing get_sp_from_cpustate
directly to the function.  In other cases, we were passing
a local variable which already contained the same value.
In the rest of the cases, we were passing the stack pointer
out of env directly.

Reviewed by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-5-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: eb215f40c2b4cbb12e97197db5fb06bd73b8324e
      
https://github.com/qemu/qemu/commit/eb215f40c2b4cbb12e97197db5fb06bd73b8324e
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c
    M linux-user/sparc/target_cpu.h

  Log Message:
  -----------
  linux-user/sparc: Include TARGET_STACK_BIAS in get_sp_from_cpustate

Move TARGET_STACK_BIAS from signal.c.  Generic code cares about the
logical stack pointer, not the physical one that has a bias applied
for sparc64.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-6-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 089a2256eec34f56db88977bf5bf8d566c4f24ad
      
https://github.com/qemu/qemu/commit/089a2256eec34f56db88977bf5bf8d566c4f24ad
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/elfload.c

  Log Message:
  -----------
  linux-user/sparc: Clean up init_thread

Share code between sparc32 and sparc64, removing a bit of pointless
difference wrt psr/tstate.  Use sizeof(abi_ulong) for allocating
initial register window.  Use TARGET_STACK_BIAS.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-7-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 2f23eec6bd9e25d6d66a819a2bd7432f84dc101c
      
https://github.com/qemu/qemu/commit/2f23eec6bd9e25d6d66a819a2bd7432f84dc101c
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/target_syscall.h
    M linux-user/sparc64/target_syscall.h

  Log Message:
  -----------
  linux-user/sparc: Merge sparc64 target_syscall.h

There are only a few differences in sparc32 vs sparc64.
This fixes target_shmlba for sparc32plus, which is v9.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-8-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: b136c211dadc8957b7e3cbb6de4031e3a69a2cfd
      
https://github.com/qemu/qemu/commit/b136c211dadc8957b7e3cbb6de4031e3a69a2cfd
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc64/target_elf.h

  Log Message:
  -----------
  linux-user/sparc: Merge sparc64 target_elf.h

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-9-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 6175783bfa2189f774f1ae8ccd0e6d19e5407e79
      
https://github.com/qemu/qemu/commit/6175783bfa2189f774f1ae8ccd0e6d19e5407e79
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/target_structs.h
    M linux-user/sparc64/target_structs.h

  Log Message:
  -----------
  linux-user/sparc: Merge sparc64 target_structs.h

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-10-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 0de9081b2369e372a6bdee5192102badad552bfb
      
https://github.com/qemu/qemu/commit/0de9081b2369e372a6bdee5192102badad552bfb
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc64/termbits.h

  Log Message:
  -----------
  linux-user/sparc: Merge sparc64 termbits.h

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-11-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 921c16268dc599180390d73bd6432a03ccc5918f
      
https://github.com/qemu/qemu/commit/921c16268dc599180390d73bd6432a03ccc5918f
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M default-configs/targets/sparc64-linux-user.mak
    M linux-user/meson.build
    R linux-user/sparc64/cpu_loop.c
    R linux-user/sparc64/meson.build
    R linux-user/sparc64/signal.c
    R linux-user/sparc64/sockbits.h
    R linux-user/sparc64/syscall.tbl
    R linux-user/sparc64/syscallhdr.sh
    R linux-user/sparc64/target_cpu.h
    R linux-user/sparc64/target_elf.h
    R linux-user/sparc64/target_fcntl.h
    R linux-user/sparc64/target_signal.h
    R linux-user/sparc64/target_structs.h
    R linux-user/sparc64/target_syscall.h
    R linux-user/sparc64/termbits.h

  Log Message:
  -----------
  linux-user/sparc: Merge sparc64/ into sparc/

All of the source and header files already defer to sparc
via #include.  The syscall.tbl and syscallhdr.sh files
could not do the same, but are identical.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-12-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 743f99e1176b175ff2698d0dc36b834c6cef7f24
      
https://github.com/qemu/qemu/commit/743f99e1176b175ff2698d0dc36b834c6cef7f24
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Remove target_sigcontext as unused

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-13-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 4f4fdec308d1b840d34056a0f100e14b317e1c44
      
https://github.com/qemu/qemu/commit/4f4fdec308d1b840d34056a0f100e14b317e1c44
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Remove target_rt_signal_frame as unused

It's wrong anyway.  Remove it for now.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-14-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: f8ea624e7456b10bee8e82b788885a438af8084d
      
https://github.com/qemu/qemu/commit/f8ea624e7456b10bee8e82b788885a438af8084d
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Fix the stackframe structure

Move target_reg_window up and use it.  Fold structptr and xxargs
into xargs -- the use of a host pointer was incorrect anyway.
Rename the structure to target_stackf for consistency.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-15-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: a1181d53a97dbed24b68fd04d700679cf9d6af65
      
https://github.com/qemu/qemu/commit/a1181d53a97dbed24b68fd04d700679cf9d6af65
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Use target_pt_regs

Replace __siginfo_t with target_pt_regs, and move si_mask
into target_signal_frame directly.

Extract save/restore functions for target_pt_regs.  Adjust
for sparc64 tstate.  Use proper get/put functions for psr.
Turns out we were already writing to si_mask twice, so no
need to handle that in the new functions.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-16-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 44a5f861718caeb6f7b1ac7a6c279d32fc84041a
      
https://github.com/qemu/qemu/commit/44a5f861718caeb6f7b1ac7a6c279d32fc84041a
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Split out save_reg_win

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-17-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: a0774ec4d4934b375a118a65104f658ef3b5b834
      
https://github.com/qemu/qemu/commit/a0774ec4d4934b375a118a65104f658ef3b5b834
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Clean up get_sigframe

Remove inline; fix spacing and comment format.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-18-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 71cda6e9128d3f47634ebc8cda7125d5039e43ac
      
https://github.com/qemu/qemu/commit/71cda6e9128d3f47634ebc8cda7125d5039e43ac
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Save and restore fpu in signal frame

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-19-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 819f6df1ef83385e59e182dc6223d1ad533d393c
      
https://github.com/qemu/qemu/commit/819f6df1ef83385e59e182dc6223d1ad533d393c
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Add rwin_save to signal frame

Stub it out to zero, but at least include it.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-20-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 757d260143488d1d0b4016020969ab28259b854b
      
https://github.com/qemu/qemu/commit/757d260143488d1d0b4016020969ab28259b854b
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Clean up setup_frame

Clean up a goto label with a single use.  Remove #if 0.
Remove useless parentheses.  Fold constants into __put_user.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-21-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 1176e57a8b34c845a89b2b0f86e424a825d40faa
      
https://github.com/qemu/qemu/commit/1176e57a8b34c845a89b2b0f86e424a825d40faa
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Minor corrections to do_sigreturn

Check that the input sp is 16 byte aligned, not 4.
Do that before the lock_user_struct check.

Validate the saved sp is 8 byte aligned.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-22-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 11670e849227890e7ab3f1413bae28bf6a0f6707
      
https://github.com/qemu/qemu/commit/11670e849227890e7ab3f1413bae28bf6a0f6707
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Add 64-bit support to fpu save/restore

The shape of the kernel's __siginfo_fpu_t is dependent on
the cpu type, not the abi.  Which is weird, but there ya go.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-23-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: e76f2f847d6e09e948ccb74657567535c5dfa398
      
https://github.com/qemu/qemu/commit/e76f2f847d6e09e948ccb74657567535c5dfa398
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c

  Log Message:
  -----------
  linux-user/sparc: Implement sparc32 rt signals

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-24-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: bb3347f80f98df3935d7018a74a6dd777f2849fa
      
https://github.com/qemu/qemu/commit/bb3347f80f98df3935d7018a74a6dd777f2849fa
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/sparc/signal.c
    M linux-user/sparc/target_signal.h

  Log Message:
  -----------
  linux-user/sparc: Implement sparc64 rt signals

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-25-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 4cce45df712650e494784415167a9e6a3f3d5136
      
https://github.com/qemu/qemu/commit/4cce45df712650e494784415167a9e6a3f3d5136
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M tests/tcg/sparc64/Makefile.target

  Log Message:
  -----------
  tests/tcg/sparc64: Re-enable linux-test

It passes now that we support signals properly.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-26-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 5d79bd111ff4f9ed0b19c20f6708a770651a9048
      
https://github.com/qemu/qemu/commit/5d79bd111ff4f9ed0b19c20f6708a770651a9048
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Fix sigframe types

Noticed via gitlab clang-user job:

  TEST    signals on s390x
../linux-user/s390x/signal.c:258:9: runtime error: \
  1.84467e+19 is outside the range of representable values of \
  type 'unsigned long'

Which points to the fact that we were performing a double-to-uint64_t
conversion while storing the fp registers, instead of just copying
the data across.

Turns out there are several errors:

target_ulong is the size of the target register, whereas abi_ulong
is the target 'unsigned long' type.  Not a big deal here, since we
only support 64-bit s390x, but not correct either.

In target_sigcontext and target ucontext, we used a host pointer
instead of a target pointer, aka abi_ulong.

Fixing this allows the removal of a cast to __put_user.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: cb1f198296dd9d7787328eab5beb2e31f550ba63
      
https://github.com/qemu/qemu/commit/cb1f198296dd9d7787328eab5beb2e31f550ba63
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Use uint16_t for signal retcode

Using the right type simplifies the frame setup.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-3-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 915c69dc029e0fe509f8e4870993977068b66eaf
      
https://github.com/qemu/qemu/commit/915c69dc029e0fe509f8e4870993977068b66eaf
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Remove PSW_ADDR_AMODE

This is an unnecessary complication since we only
support 64-bit mode.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-4-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: e6f960fcbe0d2ecd72d7f7d10a2ed510701db35e
      
https://github.com/qemu/qemu/commit/e6f960fcbe0d2ecd72d7f7d10a2ed510701db35e
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Remove restore_sigregs return value

The function cannot fail.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-5-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: bd45be9f5ffcaae68d2d0de2962cdc9fa20cb832
      
https://github.com/qemu/qemu/commit/bd45be9f5ffcaae68d2d0de2962cdc9fa20cb832
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Fix trace in restore_regs

Directly reading sc->regs.psw.addr misses the bswap
that may be performed by __get_user.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-6-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 4e4a08200b6ed60055c45a0f05f4515365785a92
      
https://github.com/qemu/qemu/commit/4e4a08200b6ed60055c45a0f05f4515365785a92
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Fix sigcontext sregs value

Using the host address of &frame->sregs is incorrect.
We need the guest address.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-7-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: bb17fc5b47af674ee429d4fca95485f9211aef4d
      
https://github.com/qemu/qemu/commit/bb17fc5b47af674ee429d4fca95485f9211aef4d
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Use tswap_sigset in setup_rt_frame

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-8-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 82839490e458a7e5022d6a0137c2a6a3eee0e9fc
      
https://github.com/qemu/qemu/commit/82839490e458a7e5022d6a0137c2a6a3eee0e9fc
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Tidy save_sigregs

The "save" routines copied from the kernel, which are currently
commented out, are unnecessary in qemu.  We can copy from env
where the kernel needs special instructions.  Fix comment style.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-9-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 20807348806e12141347d87badd34e358971e7d5
      
https://github.com/qemu/qemu/commit/20807348806e12141347d87badd34e358971e7d5
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Clean up single-use gotos in signal.c

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-10-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 7e5355578eef26ece8a783f336b2c06a1f5a083a
      
https://github.com/qemu/qemu/commit/7e5355578eef26ece8a783f336b2c06a1f5a083a
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Set psw.mask properly for the signal handler

Note that PSW_ADDR_{64,32} are called PSW_MASK_{EA,BA}
in the kernel source.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-11-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 6c18757dc55f0a47d926cec1aaab8c349a65a0c6
      
https://github.com/qemu/qemu/commit/6c18757dc55f0a47d926cec1aaab8c349a65a0c6
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Add stub sigframe argument for last_break

In order to properly present these arguments, we need to add
code to target/s390x to record LowCore parameters for user-only.

But in the meantime, at least zero the missing last_break
argument, and fixup the comment style in the vicinity.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-12-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: ac1a92ec8f1328141707965bb1df4252fdb76b68
      
https://github.com/qemu/qemu/commit/ac1a92ec8f1328141707965bb1df4252fdb76b68
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Fix frame_addr corruption in setup_frame

The original value of frame_addr is still required for
its use in the call to unlock_user_struct below.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-13-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 9e0fb648b259981350777020717bba8365957b0f
      
https://github.com/qemu/qemu/commit/9e0fb648b259981350777020717bba8365957b0f
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Add build asserts for sigset sizes

At point of usage, it's not immediately obvious that
we don't need a loop to copy these arrays.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-14-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 79d6f2baa4b738bb223a0ad382661fe501b0c867
      
https://github.com/qemu/qemu/commit/79d6f2baa4b738bb223a0ad382661fe501b0c867
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Clean up signal.c

Reorder the function bodies to correspond to the kernel source.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-15-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 0b16f04c1fa3f4f2abc538154c77b06c2aba52df
      
https://github.com/qemu/qemu/commit/0b16f04c1fa3f4f2abc538154c77b06c2aba52df
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/s390x/signal.c

  Log Message:
  -----------
  linux-user/s390x: Handle vector regs in signal stack

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-16-richard.henderson@linaro.org>
[lv: fix indentation]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: db3221454d6b242c248cc4c33c60b9016e153516
      
https://github.com/qemu/qemu/commit/db3221454d6b242c248cc4c33c60b9016e153516
  Author: Giuseppe Musacchio <thatlemon@gmail.com>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/strace.list

  Log Message:
  -----------
  linux-user: Add copy_file_range to strace.list

Signed-off-by: Giuseppe Musacchio <thatlemon@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210503174159.54302-2-thatlemon@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 0fa259dd7986d152294f31a6483272a4cb627b6d
      
https://github.com/qemu/qemu/commit/0fa259dd7986d152294f31a6483272a4cb627b6d
  Author: Giuseppe Musacchio <thatlemon@gmail.com>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Fix erroneous conversion in copy_file_range

The implicit cast from abi_long to size_t may introduce an intermediate
unwanted sign-extension of the value for 32bit targets running on 64bit
hosts.

Signed-off-by: Giuseppe Musacchio <thatlemon@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210503174159.54302-3-thatlemon@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 68af19ad72630f00d1b92635334050826e4b6f08
      
https://github.com/qemu/qemu/commit/68af19ad72630f00d1b92635334050826e4b6f08
  Author: Daniel P. Berrangé <berrange@redhat.com>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/elfload.c

  Log Message:
  -----------
  linux-user: use GDateTime for formatting timestamp for core file

The GDateTime APIs provided by GLib avoid portability pitfalls, such
as some platforms where 'struct timeval.tv_sec' field is still 'long'
instead of 'time_t'. When combined with automatic cleanup, GDateTime
often results in simpler code too.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20210505103702.521457-7-berrange@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 8f5141a9e10c8621c902eeb969bd188d995ecc18
      
https://github.com/qemu/qemu/commit/8f5141a9e10c8621c902eeb969bd188d995ecc18
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/alpha/signal.c

  Log Message:
  -----------
  linux-user/alpha: Fix rt sigframe return

We incorrectly used the offset of the non-rt sigframe.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210422230227.314751-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: f20a9ca6d09796a50e850bd105ba03aa96918e5f
      
https://github.com/qemu/qemu/commit/f20a9ca6d09796a50e850bd105ba03aa96918e5f
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/alpha/signal.c
    M linux-user/syscall.c
    M linux-user/syscall_defs.h

  Log Message:
  -----------
  linux-user/alpha: Rename the sigaction restorer field

Use ka_restorer, in line with TARGET_ARCH_HAS_KA_RESTORER
vs TARGET_ARCH_HAS_SA_RESTORER, since Alpha passes this
field as a syscall argument.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210422230227.314751-3-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 02fb28e8effe5090ded4d36ea1c947a615099c26
      
https://github.com/qemu/qemu/commit/02fb28e8effe5090ded4d36ea1c947a615099c26
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/signal.c
    M linux-user/syscall.c
    M linux-user/syscall_defs.h

  Log Message:
  -----------
  linux-user: Pass ka_restorer to do_sigaction

The value of ka_restorer needs to be saved in sigact_table.
At the moment, the attempt to save it in do_syscall is
improperly clobbering user memory.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210422230227.314751-4-richard.henderson@linaro.org>
[lv: remove tab]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: ca192277db2bfc466840f19f2ee314a84fc78d5c
      
https://github.com/qemu/qemu/commit/ca192277db2bfc466840f19f2ee314a84fc78d5c
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Honor TARGET_ARCH_HAS_SA_RESTORER in do_syscall

Do not access a field that may not be present.  This will
become an issue when sharing more code in the next patch.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210422230227.314751-5-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 0f6f99032e495b28b8d455144610c5a84a7067d8
      
https://github.com/qemu/qemu/commit/0f6f99032e495b28b8d455144610c5a84a7067d8
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/alpha/target_signal.h
    M linux-user/syscall.c
    M linux-user/syscall_defs.h

  Log Message:
  -----------
  linux-user/alpha: Define TARGET_ARCH_HAS_KA_RESTORER

This means that we can share the TARGET_NR_rt_sigaction code,
and the target_rt_sigaction structure is unused.  Untangling
the ifdefs so that target_sigaction can be shared will wait
until the next patch.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210422230227.314751-6-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 02d0de101c797d14115629818823c0e062c64d26
      
https://github.com/qemu/qemu/commit/02d0de101c797d14115629818823c0e062c64d26
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/syscall.c
    M linux-user/syscall_defs.h

  Log Message:
  -----------
  linux-user/alpha: Share code for TARGET_NR_sigaction

There's no longer a difference between the alpha code and
the generic code.

There is a type difference in target_old_sigaction.sa_flags,
which can be resolved with a very much smaller ifdef, which
allows us to finish sharing the target_sigaction definition.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210422230227.314751-7-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: fb80439b1ede60d214ae5bbacc29b137a89b9e72
      
https://github.com/qemu/qemu/commit/fb80439b1ede60d214ae5bbacc29b137a89b9e72
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/syscall.c

  Log Message:
  -----------
  linux-user: Tidy TARGET_NR_rt_sigaction

Initialize variables instead of elses.
Use an else instead of a goto.
Add braces.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210422230227.314751-8-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 5f779a3a26a9dcc8072d909b7759bb9fade097a9
      
https://github.com/qemu/qemu/commit/5f779a3a26a9dcc8072d909b7759bb9fade097a9
  Author: Ilya Leoshkevich <iii@linux.ibm.com>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/elfload.c

  Log Message:
  -----------
  linux-user/elfload: fix filling psinfo->pr_psargs

The current code dumps the memory between arg_start and arg_end,
which contains the argv pointers. This results in the

    Core was generated by `<garbage>`

message when opening the core file in GDB. This is because the code is
supposed to dump the actual arg strings. Fix by using arg_strings and
env_strings instead of arg_start and arg_end.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20210413205814.22821-1-iii@linux.ibm.com>
[lv: add missing braces]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: 4a1e8931eca05077afd0b7ed092ab0f10c5b457e
      
https://github.com/qemu/qemu/commit/4a1e8931eca05077afd0b7ed092ab0f10c5b457e
  Author: Ilya Leoshkevich <iii@linux.ibm.com>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M linux-user/elfload.c

  Log Message:
  -----------
  linux-user/elfload: add s390x core dumping support

Provide the following definitions required by the common code:

* ELF_NREG: with the value of sizeof(s390_regs) / sizeof(long).
* target_elf_gregset_t: define it like all the other arches do.
* elf_core_copy_regs(): similar to kernel's s390_regs_get().
* USE_ELF_CORE_DUMP.
* ELF_EXEC_PAGESIZE.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20210413205608.22587-1-iii@linux.ibm.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>


  Commit: c313e52e6459de2e9064767083a0c949c476e32b
      
https://github.com/qemu/qemu/commit/c313e52e6459de2e9064767083a0c949c476e32b
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M default-configs/targets/sparc64-linux-user.mak
    M linux-user/aarch64/signal.c
    M linux-user/alpha/signal.c
    M linux-user/alpha/target_signal.h
    M linux-user/arm/cpu_loop.c
    M linux-user/arm/signal.c
    M linux-user/elfload.c
    M linux-user/hexagon/signal.c
    M linux-user/hppa/signal.c
    M linux-user/i386/signal.c
    M linux-user/m68k/signal.c
    M linux-user/main.c
    M linux-user/meson.build
    M linux-user/microblaze/signal.c
    M linux-user/mips/signal.c
    M linux-user/nios2/signal.c
    M linux-user/openrisc/signal.c
    M linux-user/ppc/signal.c
    M linux-user/qemu.h
    M linux-user/riscv/signal.c
    M linux-user/s390x/signal.c
    M linux-user/sh4/signal.c
    M linux-user/signal-common.h
    M linux-user/signal.c
    M linux-user/sparc/signal.c
    M linux-user/sparc/target_cpu.h
    M linux-user/sparc/target_signal.h
    M linux-user/sparc/target_structs.h
    M linux-user/sparc/target_syscall.h
    R linux-user/sparc64/cpu_loop.c
    R linux-user/sparc64/meson.build
    R linux-user/sparc64/signal.c
    R linux-user/sparc64/sockbits.h
    R linux-user/sparc64/syscall.tbl
    R linux-user/sparc64/syscallhdr.sh
    R linux-user/sparc64/target_cpu.h
    R linux-user/sparc64/target_elf.h
    R linux-user/sparc64/target_fcntl.h
    R linux-user/sparc64/target_signal.h
    R linux-user/sparc64/target_structs.h
    R linux-user/sparc64/target_syscall.h
    R linux-user/sparc64/termbits.h
    M linux-user/strace.c
    M linux-user/strace.list
    M linux-user/syscall.c
    M linux-user/syscall_defs.h
    M linux-user/xtensa/signal.c
    M tests/tcg/sparc64/Makefile.target

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/vivier2/tags/linux-user-for-6.1-pull-request' into staging

linux-user pull request 20210517

- alpha sigaction fixes/cleanups
- s390x sigaction fixes/cleanup
- sparc sigaction fixes/cleanup
- s390x core dumping support
- core dump fix (app name)
- arm  fpa11 fix and cleanup
- strace fixes (unshare(), llseek())
- fix copy_file_range()
- use GDateTime
- Remove dead code

# gpg: Signature made Tue 18 May 2021 06:31:12 BST
# gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
# gpg:                issuer "laurent@vivier.eu"
# gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
# gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
# gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" 
[full]
# Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C

* remotes/vivier2/tags/linux-user-for-6.1-pull-request: (59 commits)
  linux-user/elfload: add s390x core dumping support
  linux-user/elfload: fix filling psinfo->pr_psargs
  linux-user: Tidy TARGET_NR_rt_sigaction
  linux-user/alpha: Share code for TARGET_NR_sigaction
  linux-user/alpha: Define TARGET_ARCH_HAS_KA_RESTORER
  linux-user: Honor TARGET_ARCH_HAS_SA_RESTORER in do_syscall
  linux-user: Pass ka_restorer to do_sigaction
  linux-user/alpha: Rename the sigaction restorer field
  linux-user/alpha: Fix rt sigframe return
  linux-user: use GDateTime for formatting timestamp for core file
  linux-user: Fix erroneous conversion in copy_file_range
  linux-user: Add copy_file_range to strace.list
  linux-user/s390x: Handle vector regs in signal stack
  linux-user/s390x: Clean up signal.c
  linux-user/s390x: Add build asserts for sigset sizes
  linux-user/s390x: Fix frame_addr corruption in setup_frame
  linux-user/s390x: Add stub sigframe argument for last_break
  linux-user/s390x: Set psw.mask properly for the signal handler
  linux-user/s390x: Clean up single-use gotos in signal.c
  linux-user/s390x: Tidy save_sigregs
  ...

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>


Compare: https://github.com/qemu/qemu/compare/15e147b3c778...c313e52e6459



reply via email to

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