Skip to content
Snippets Groups Projects
  1. Jan 13, 2022
  2. Jan 12, 2022
    • Peter Maydell's avatar
      Merge remote-tracking branch... · 91f5f7a5
      Peter Maydell authored
      Merge remote-tracking branch 'remotes/lvivier-gitlab/tags/linux-user-for-7.0-pull-request' into staging
      
      linux-user pull request 20220111
      siginfo_t cleanup
      more prtctl() update
      target_struct.h cleanup
      
      # gpg: Signature made Tue 11 Jan 2022 19:52:20 GMT
      # 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/lvivier-gitlab/tags/linux-user-for-7.0-pull-request: (30 commits)
        linux-user: Implement capability prctls
        linux-user: Implement PR_SET_PDEATHSIG
        linux-user: Map signal number in PR_GET_PDEATHSIG
        linux-user: Do not special-case NULL for PR_GET_PDEATHSIG
        linux-user: Move target_struct.h generic definitions to generic/
        linux-user/arm: Move target_oabi_flock64 out of target_structs.h
        linux-user/xtensa: Use force_sig_fault
        linux-user/sparc: Use force_sig_fault
        linux-user/sh4: Use force_sig_fault
        linux-user/s390x: Use force_sig_fault
        linux-user/riscv: Use force_sig_fault
        linux-user/ppc: Use force_sig_fault
        linux-user/openrisc: Use force_sig_fault
        target/mips: Extract trap code into env->error_code
        target/mips: Extract break code into env->error_code
        linux-user/mips: Use force_sig_fault
        linux-user/mips: Improve do_break
        linux-user/microblaze: Fix SIGFPE si_codes
        linux-user/microblaze: Use force_sig_fault
        linux-user/m68k: Use force_sig_fault
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      91f5f7a5
    • Peter Maydell's avatar
      linux-user: Fix clang warning for nios2-linux-user code · b37778b8
      Peter Maydell authored
      
      The clang in Ubuntu 18.04 (10.0.0-4ubuntu1) produces a warning
      on the code added in commit f5ef0e51 where we use a
      shifted expression in a boolean context:
      
      ../../linux-user/elfload.c:2423:16: error: converting the result of '<<' to a boolean always evaluates to true [-Werror,-Wtautological-constant-compare]
          } else if (LO_COMMPAGE) {
                     ^
      ../../linux-user/elfload.c:1102:22: note: expanded from macro 'LO_COMMPAGE'
      #define LO_COMMPAGE  TARGET_PAGE_SIZE
                           ^
      /mnt/nvmedisk/linaro/qemu-from-laptop/qemu/include/exec/cpu-all.h:231:31: note: expanded from macro 'TARGET_PAGE_SIZE'
      #define TARGET_PAGE_SIZE   (1 << TARGET_PAGE_BITS)
                                    ^
      1 error generated.
      
      The warning is bogus because whether LO_COMMPAGE is zero or not
      depends on compile-time ifdefs; shut the compiler up by adding
      an explicit comparison to zero.
      
      Fixes: f5ef0e51 ("linux-user/nios2: Map a real kuser page")
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Message-id: 20220111082900.3341274-1-peter.maydell@linaro.org
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      b37778b8
  3. Jan 11, 2022
Loading