Skip to content
Snippets Groups Projects
  1. Sep 26, 2022
    • Jason A. Donenfeld's avatar
      m68k: align bootinfo strings and data to 4 bytes · 2cfa9631
      Jason A. Donenfeld authored
      
      Various tools, such as kexec-tools and m68k-bootinfo, expect each
      bootinfo entry to be aligned to 4 bytes, not 2 bytes. So adjust the
      padding to fill this out as such.
      
      Also, break apart the padding additions from the other field length
      additions, so that it's more clear why these magic numbers are being
      added, and comment them too.
      
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: Laurent Vivier <laurent@vivier.eu>
      Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Message-Id: <20220926113900.1256630-2-Jason@zx2c4.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      2cfa9631
    • Mark Cave-Ayland's avatar
      target/m68k: use M68K_FEATURE_MOVEFROMSR_PRIV feature for move_from_sr privilege check · b342e56b
      Mark Cave-Ayland authored
      
      Now that M68K_FEATURE_M68000 has been renamed to M68K_FEATURE_M68K it is easier
      to see that the privilege exception check is wrong: it is currently only generated
      for ColdFire CPUs when in fact it should also be generated for Motorola CPUs from
      the 68010 onwards.
      
      Introduce a new M68K_FEATURE_MOVEFROMSR_PRIV feature which is set for all non-
      Motorola CPUs, and for all Motorola CPUs from the 68010 onwards and use it to
      determine whether a privilege exception should be generated for the MOVE-from-SR
      instruction.
      
      Signed-off-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20220925134804.139706-3-mark.cave-ayland@ilande.co.uk>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      b342e56b
    • Mark Cave-Ayland's avatar
      target/m68k: increase size of m68k CPU features from uint32_t to uint64_t · 2dc7bf63
      Mark Cave-Ayland authored
      
      There are already 32 feature bits in use, so change the size of the m68k
      CPU features to uint64_t (along with the associated m68k_feature()
      functions) to allow up to 64 feature bits to be used.
      
      At the same time make use of the BIT_ULL() macro when reading/writing
      the CPU feature bits to improve readability, and also update m68k_feature()
      to return a bool rather than an int.
      
      Signed-off-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <20220925134804.139706-2-mark.cave-ayland@ilande.co.uk>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      2dc7bf63
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-target-arm-20220922' of... · 99d6b11b
      Stefan Hajnoczi authored
      Merge tag 'pull-target-arm-20220922' of https://git.linaro.org/people/pmaydell/qemu-arm into staging
      
      target-arm queue:
       * hw/net/can: fix Xilinx ZynqMP CAN RX FIFO logic
       * Fix alignment for Neon VLD4.32
       * Refactoring of page-table-walk code
       * hw/acpi: Add ospm_status hook implementation for acpi-ged
       * hw/net/lan9118: Signal TSFL_INT flag when TX FIFO reaches specified level
       * chardev/baum: avoid variable-length arrays
       * io/channel-websock: avoid variable-length arrays
       * hw/net/e1000e_core: Use definition to avoid dynamic stack allocation
       * hw/ppc/pnv: Avoid dynamic stack allocation
       * hw/intc/xics: Avoid dynamic stack allocation
       * hw/i386/multiboot: Avoid dynamic stack allocation
       * hw/usb/hcd-ohci: Use definition to avoid dynamic stack allocation
       * ui/curses: Avoid dynamic stack allocation
       * tests/unit/test-vmstate: Avoid dynamic stack allocation
       * configure: fix various shellcheck-spotted issues and nits
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAmMsjocZHHBldGVyLm1h
      # eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3s0vEACuUs7nGGX5vd96EPN+sO5s
      # HstP16G6/Xnlw2z0BaXi0MMWapQRhSQJ+MIeDJmqIyZKQ3geJGP7pbFTxI3zreYM
      # UTKjdI/wWRYMKPYfxlIBZ8TPugj4a4paFJlyqmpHXtkwiWRv6rF70HQ9Yku5id93
      # FN9js/dyF74S2AaDppBuTWp31cM1k6kBTg/v5tXSxE8kDUKkO+HZ1VujOqIG/4nJ
      # 6urNJ7jlHSiFdXya2QiR+CAkyXyy551rLETeO8VJg9tOO7Ys7Olj7lqv6kHJY/X1
      # 01RbN5A5WXhqCvTLM3UYTvFHmbZtS/C5iUhHRtlZkOoeSv2jS6IRDB8BrBtIbOwF
      # XKpaYf1jyFLFwX++hpvySD9Vbcu8KgKId8iKTuDcxjQlEjL3fTbt1ulKo4y+rJ8O
      # 6G1k4yZc8/nAvttNoKCn7/Jr1dC+HsANa+1s1L+6w+f1gARV0VXs4gqsveNnbe1+
      # WzzaHvHt+hCaiWkSZlyisyw3fbEXMrEyKewi+SZu3c8PvJ6DHa+rYjkhem7muBVF
      # iR48FRTjFiS+o402KMwXfMdiGjXyZFi09yn5diowlVjkNAaZVZfgu/wUMD5QBhbh
      # fNDSw7LpXGUHML/O98MiXznkgGvTEQNxZdp2qIQrTiinUgmV4ZRLR23ZpEibdJPX
      # kiOkr46SbWvksCXnRlTf8w==
      # =hec8
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Thu 22 Sep 2022 12:34:15 EDT
      # gpg:                using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE
      # gpg:                issuer "peter.maydell@linaro.org"
      # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [full]
      # gpg:                 aka "Peter Maydell <pmaydell@gmail.com>" [full]
      # gpg:                 aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [full]
      # gpg:                 aka "Peter Maydell <peter@archaic.org.uk>" [unknown]
      # Primary key fingerprint: E1A5 C593 CD41 9DE2 8E83  15CF 3C25 25ED 1436 0CDE
      
      * tag 'pull-target-arm-20220922' of https://git.linaro.org/people/pmaydell/qemu-arm
      
      : (39 commits)
        configure: Avoid use of 'local' as it is non-POSIX
        configure: Check mkdir result directly, not via $?
        configure: Remove use of backtick `...` syntax
        configure: Add './' on front of glob of */config-devices.mak.d
        configure: Add missing quoting for some easy cases
        configure: Remove unused meson_args variable
        configure: Remove unused python_version variable
        tests/unit/test-vmstate: Avoid dynamic stack allocation
        ui/curses: Avoid dynamic stack allocation
        hw/usb/hcd-ohci: Use definition to avoid dynamic stack allocation
        hw/i386/multiboot: Avoid dynamic stack allocation
        hw/intc/xics: Avoid dynamic stack allocation
        hw/ppc/pnv: Avoid dynamic stack allocation
        hw/net/e1000e_core: Use definition to avoid dynamic stack allocation
        io/channel-websock: Replace strlen(const_str) by sizeof(const_str) - 1
        chardev/baum: Avoid dynamic stack allocation
        chardev/baum: Use definitions to avoid dynamic stack allocation
        chardev/baum: Replace magic values by X_MAX / Y_MAX definitions
        hw/net/lan9118: Signal TSFL_INT flag when TX FIFO reaches specified level
        hw/acpi: Add ospm_status hook implementation for acpi-ged
        ...
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      99d6b11b
  2. Sep 22, 2022
Loading