Skip to content
Snippets Groups Projects
  1. Nov 08, 2023
    • Akihiko Odaki's avatar
      gdbstub: Add num_regs member to GDBFeature · 6c2313e8
      Akihiko Odaki authored
      
      Currently the number of registers exposed to GDB is written as magic
      numbers in code. Derive the number of registers GDB actually see from
      XML files to replace the magic numbers in code later.
      
      Signed-off-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20231025093128.33116-2-akihiko.odaki@daynix.com>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20231106185112.2755262-9-alex.bennee@linaro.org>
      6c2313e8
    • Alex Bennée's avatar
      tests/avocado: update the tcg_plugins test · 11959996
      Alex Bennée authored
      
      There are a number of things that are broken on the test currently so
      lets fix that up:
      
        - replace retired Debian kernel for tuxrun_baseline one
        - remove "detected repeat instructions test" since ea185a55
        - log total counted instructions/memory accesses
      
      Acked-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20231106185112.2755262-8-alex.bennee@linaro.org>
      11959996
    • Alex Bennée's avatar
      tests/tcg: add an explicit gdbstub register tester · 21750c3c
      Alex Bennée authored
      
      We already do a couple of "info registers" for specific tests but this
      is a more comprehensive multiarch test. It also has some output
      helpful for debugging the gdbstub by showing which XML features are
      advertised and what the underlying register numbers are.
      
      My initial motivation was to see if there are any duplicate register
      names exposed via the gdbstub while I was reviewing the proposed
      register interface for TCG plugins.
      
      Mismatches between the xml and remote-desc are reported for debugging
      but do not fail the test.
      
      We also skip the tests for the following arches for now until we can
      investigate and fix any issues:
      
        - s390x (fails to read v0l->v15l, not seen in remote-registers)
        - ppc64 (fails to read vs0h->vs31h, not seen in remote-registers)
      
      Cc: Akihiko Odaki <akihiko.odaki@daynix.com>
      Cc: Luis Machado <luis.machado@linaro.org>
      Cc: Ilya Leoshkevich <iii@linux.ibm.com>
      Cc: qemu-s390x@nongnu.org
      Cc: Nicholas Piggin <npiggin@gmail.com>
      Cc: Daniel Henrique Barboza <danielhb413@gmail.com>
      Cc: qemu-ppc@nongnu.org
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20231106185112.2755262-7-alex.bennee@linaro.org>
      21750c3c
    • Alex Bennée's avatar
      target/arm: hide aliased MIDR from gdbstub · acd8e83a
      Alex Bennée authored
      
      This is just a constant alias register with the same value as the
      "other" MIDR so it serves no purpose being presented to gdbstub.
      
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-Id: <20231106185112.2755262-6-alex.bennee@linaro.org>
      acd8e83a
    • Alex Bennée's avatar
      target/arm: hide all versions of DBGD[RS]AR from gdbstub · f654387b
      Alex Bennée authored
      
      This avoids two duplicates being presented to gdbstub. As the
      registers are RAZ anyway it is unlikely their value would be of use to
      someone using gdbstub anyway.
      
      Acked-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20231106185112.2755262-5-alex.bennee@linaro.org>
      f654387b
    • Alex Bennée's avatar
      target/arm: mark the 32bit alias of PAR when LPAE enabled · 8ce4d441
      Alex Bennée authored
      
      We also mark it ARM_CP_NO_GDB so we avoid duplicate PAR's in the
      system register XML we send to gdb.
      
      Suggested-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Message-Id: <20231107105145.2916124-1-alex.bennee@linaro.org>
      8ce4d441
    • Alex Bennée's avatar
      gdb-xml: fix duplicate register in arm-neon.xml · 940bb5fa
      Alex Bennée authored
      
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      Fixes: 56aebc89 ("Add GDB XML register description support")
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20231106185112.2755262-3-alex.bennee@linaro.org>
      940bb5fa
    • Akihiko Odaki's avatar
      default-configs: Add TARGET_XML_FILES definition · e5e653b0
      Akihiko Odaki authored
      
      loongarch64-linux-user has references to XML files so include them.
      
      Fixes: d32688ec ("default-configs: Add loongarch linux-user support")
      Signed-off-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
      Message-Id: <20231030054834.39145-6-akihiko.odaki@daynix.com>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
      Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      [AJB: remove base32 from list]
      Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
      Message-Id: <20231106185112.2755262-2-alex.bennee@linaro.org>
      e5e653b0
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-ppc-20231107' of https://gitlab.com/danielhb/qemu into staging · a3c3aaa8
      Stefan Hajnoczi authored
      ppc patch queue for 2023-11-07:
      
      This queue, the last one before the 8.2 feature freeze, has miscellanous
      changes that includes new PowerNV features and the new AmigaONE XE
      board.
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iIwEABYKADQWIQQX6/+ZI9AYAK8oOBk82cqW3gMxZAUCZUqiORYcZGFuaWVsaGI0
      # MTNAZ21haWwuY29tAAoJEDzZypbeAzFkBSUA/2qm8CyrRqY5+tsjtWQqZmPZ3L1F
      # CgnXFNqtY2tzbTe5AQCi6FeQBEmXbZYVfryZyA+CQ4DUERc+18pe6hV3bBR9Cg==
      # =cnHS
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Wed 08 Nov 2023 04:46:49 HKT
      # gpg:                using EDDSA key 17EBFF9923D01800AF2838193CD9CA96DE033164
      # gpg:                issuer "danielhb413@gmail.com"
      # gpg: Good signature from "Daniel Henrique Barboza <danielhb413@gmail.com>" [unknown]
      # gpg: WARNING: The key's User ID is not certified with a trusted signature!
      # gpg:          There is no indication that the signature belongs to the owner.
      # Primary key fingerprint: 17EB FF99 23D0 1800 AF28  3819 3CD9 CA96 DE03 3164
      
      * tag 'pull-ppc-20231107' of https://gitlab.com/danielhb/qemu
      
      :
        ppc: qtest already exports qtest_rtas_call()
        hw/pci-host: Update PHB5 XSCOM registers
        ppc/pnv: Fix number of I2C engines and ports for power9/10
        ppc/pnv: Connect PNV I2C controller to powernv10
        ppc/pnv: Connect I2C controller model to powernv9 chip
        ppc/pnv: Add an I2C controller model
        tests/avocado: Add test for amigaone board
        hw/ppc: Add emulation of AmigaOne XE board
        hw/pci-host: Add emulation of Mai Logic Articia S
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      a3c3aaa8
    • Stefan Hajnoczi's avatar
      Merge tag 'misc-fixes-pull-request' of https://gitlab.com/berrange/qemu into staging · f09744dd
      Stefan Hajnoczi authored
       * Print error with f32 audio format in wav backend instead of abort
       * Drop redundant listener name suffix
       * Update libvirt mailing list address
       * Cleanup RSA key error paths
       * Fix CPU uarch ABI script QMP command calling
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEE2vOm/bJrYpEtDo4/vobrtBUQT98FAmVKiwoACgkQvobrtBUQ
      # T9+SjxAAmDBWE9WI/eKZEb3QVNi3W90bVNIKMSdu7DMaqSPGMe6dcNeJy6kHL2ud
      # EgdvtKgWq5wwFDojrYiUB75tSFGP7InK2a7EN7t60kE/XxtqR/fvLo11d+gUI7Z6
      # vetsHLtDYEs3Hr/75qg1/ock/G1TxzlJknzww1zDjQrwFSaJnOWDdY+RSRGTwEho
      # PRfFRkIDZqs3LAKyjRdiYWms90vogG2Bwygmo/mirgta9Lmkz9WC9SN/EqOvOBOE
      # NyaO84xu38U3JwN5d9w4MFdgayFNRYTcvTu8J0NdHLp16CYBViGecIGb4deDYN0U
      # jhmfKChyr0tJucPsRndXQU2KFusePjiSWEsG9FdbpXdjFGIwinJUDKOaHI4Kk9pc
      # stGCwb8+9Ec0e31JqtMBd5VeoToK8UsthVqAx1brnXv9K5liSXS7nyFPwNp/SMi4
      # UNpjawSItAHEgc6VzqDNZY+dGtueMZmM0lf7cMLho3BgAeyTbr1NuwOIJx28JP2E
      # NnkAwDHjj9u1mkhRM7BbgBzGq006naWP8V6dCGQSH+/D0C9P3yzs7XLtvwtUDO3P
      # DalGRsazT+o+pyuyw0uyV2z6GuLAl9ZhI0MJCgIxsmASdxANxMcIaCrs1yc0IG2A
      # y16e4/Ic/FzqkbwkkBy3tkDF7vI0++1MuqmcWki+RFz1hzqmY+Y=
      # =KHzn
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Wed 08 Nov 2023 03:07:54 HKT
      # gpg:                using RSA key DAF3A6FDB26B62912D0E8E3FBE86EBB415104FDF
      # gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>" [full]
      # gpg:                 aka "Daniel P. Berrange <berrange@redhat.com>" [full]
      # Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF
      
      * tag 'misc-fixes-pull-request' of https://gitlab.com/berrange/qemu
      
      :
        scripts/cpu-x86-uarch-abi.py: Fix parameter error of cmd
        MAINTAINERS: update libvirt devel mailing list address
        audio: don't abort on f32 audio format in wav backend
        io: Stop appending -listen to net listeners
        crypto/rsakey-builtin.c.inc: Clean up two error paths
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      f09744dd
    • Stefan Hajnoczi's avatar
      Merge tag 'pull-request-2023-11-07' of https://gitlab.com/thuth/qemu into staging · 44ad47b7
      Stefan Hajnoczi authored
      * Fix s390x CPU reconfiguration information in the SCLP facility map
      * Fix condition code problem in the CLC and LAALG instruction
      * Fix ordering of the new s390x topology list entries
      * Add some more files to the MAINTAINERS file
      * Allow newer versions of Tesseract in the m68k nextcube test
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQJFBAABCAAvFiEEJ7iIR+7gJQEY8+q5LtnXdP5wLbUFAmVKgksRHHRodXRoQHJl
      # ZGhhdC5jb20ACgkQLtnXdP5wLbWIHg//TM3JOpsMEqHKlUKqOJH02mFQrK6H7LG0
      # BC56FG7T+/mpYs1NTG92t8nCK03C2ZCweQWD7ZulRJAjPhZv+TF5bJEForivU7+k
      # PKEshz9xKCWn2YGyNnf2LA06J1JkF215+KlReOoxwSgj1cPlHfBLQ0DtxmpJJZ1G
      # h5p4d26BbSlwR58HrFWTlhgJMPenl59BETUGIK1FklBxunmZeeijddfniAhOT44y
      # i0u9/H9KCg3tkwBROUy+42QV+ef32kz/yvi5RmYQI5W7PixO4sxH6MYduOjshsu9
      # wK70f8EOwiZV6lFxqmbV7vxFeNnp5IuaVU7PMBoAkwZqLw99mSFy1+1BabCuL5b+
      # 3iUTiD4UW48MYwE2Ua6Lit4kpfjhwcp/UYz6pIk6TCBQX6LfzO+nj+rod0GdIpyZ
      # 4Lwm7jBtpTlYkGrsMvpA/qcidOtqPA1lmBTNlY1hFodQF6KWtyObn0w5AM80xeeU
      # /mGxQDz97Bpz7LKZvhu+k38jaWvnJFnl3jF1zet88CYL9YL+YI/k1KjhFafCXb0V
      # 38Xpt5JTWxyLSh2B3gx0OpokX5bftvW9GlLix0HqL7c23uYwR2Bq+Rd6I8SAlk4C
      # uJq6gqP8IFBFHfgbmyqf/fyd/eHxm7J1voIdy9PZyxZ1JYT9A7yu56qV6SJYwCpr
      # aARwui/Dm4o=
      # =y+cC
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Wed 08 Nov 2023 02:30:35 HKT
      # gpg:                using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5
      # gpg:                issuer "thuth@redhat.com"
      # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full]
      # gpg:                 aka "Thomas Huth <thuth@redhat.com>" [full]
      # gpg:                 aka "Thomas Huth <huth@tuxfamily.org>" [full]
      # gpg:                 aka "Thomas Huth <th.huth@posteo.de>" [unknown]
      # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5
      
      * tag 'pull-request-2023-11-07' of https://gitlab.com/thuth/qemu
      
      :
        target/s390x/cpu topology: Fix ordering and creation of TLEs
        tests/tcg/s390x: Test ADD LOGICAL WITH CARRY
        tests/tcg/s390x: Test LAALG with negative cc_src
        target/s390x: Fix LAALG not updating cc_src
        tests/tcg/s390x: Test CLC with inaccessible second operand
        target/s390x: Fix CLC corrupting cc_src
        target/s390x/cpu_models: Use 'first_cpu' in s390_get_feat_block()
        s390/sclp: fix SCLP facility map
        tests/avocado: Allow newer versions of tesseract in the nextcube test
        MAINTAINERS: Add artist.c to the hppa machine section
        MAINTAINERS: Add the virtio-gpu documentation to the corresponding section
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      44ad47b7
    • Stefan Hajnoczi's avatar
      Merge tag 'misc-cpus-20231107' of https://github.com/philmd/qemu into staging · ed1d873c
      Stefan Hajnoczi authored
      Misc hardware patch queue
      
      HW emulation:
      - PMBus fixes and tests (Titus)
      - IDE fixes and tests (Fiona)
      - New ADM1266 sensor (Titus)
      - Better error propagation in PCI-ISA i82378 (Philippe)
      - Declare SD model QOM types using DEFINE_TYPES macro (Philippe)
      
      Topology:
      - Fix CPUState::nr_cores calculation (Zhuocheng Ding and Zhao Liu)
      
      Monitor:
      - Synchronize CPU state in 'info lapic' (Dongli Zhang)
      
      QOM:
      - Have 'cpu-qom.h' target-agnostic (Philippe)
      - Move ArchCPUClass definition to each target's cpu.h (Philippe)
      - Call object_class_is_abstract once in cpu_class_by_name (Philippe)
      
      UI:
      - Use correct key names in titles on MacOS / SDL2 (Adrian)
      
      MIPS:
      - Fix MSA BZ/BNZ and TX79 LQ/SQ opcodes (Philippe)
      
      Nios2:
      - Create IRQs *after* vCPU is realized (Philippe)
      
      PPC:
      - Restrict KVM objects to system emulation (Philippe)
      - Move target-specific definitions out of 'cpu-qom.h' (Philippe)
      
      S390X:
      - Make hw/s390x/css.h and hw/s390x/sclp.h headers target agnostic (Philippe)
      
      X86:
      - HVF & KVM cleanups (Philippe)
      
      Various targets:
      - Use env_archcpu() to optimize (Philippe)
      
      Misc:
      - Few global variable shadowing removed (Philippe)
      - Introduce cpu_exec_reset_hold and factor tcg_cpu_reset_hold out (Philippe)
      - Remove few more 'softmmu' mentions (Philippe)
      - Fix and cleanup in vl.c (Akihiko & Marc-André)
      - Resource leak fix in dump (Zongmin Zhou)
      - MAINTAINERS updates (Thomas, Daniel)
      
      # -----BEGIN PGP SIGNATURE-----
      #
      # iQIzBAABCAAdFiEE+qvnXhKRciHc/Wuy4+MsLN6twN4FAmVKKmEACgkQ4+MsLN6t
      # wN4xHQ//X/enH4C7K3VP/tSinDiwmXN2o61L9rjqSDQkBaCtktZx4c8qKSDL7V4S
      # vwzmvvBn3biMXQwZNVJo9d0oz2qoaF9tI6Ao0XDHAan9ziagfG9YMqWhkCfj077Q
      # jLdCqkUuMJBvQgXGB1a6UgCme8PQx7h0oqjbCNfB0ZBls24b5DiEjO87LE4OTbTi
      # zKRhYEpZpGwIVcy+1dAsbaBpGFP06sr1doB9Wz4c06eSx7t0kFSPk6U4CyOPrGXh
      # ynyCxPwngxIXmarY8gqPs3SBs7oXsH8Q/ZOHr1LbuXhwSuw/0zBQU9aF7Ir8RPan
      # DB79JjPrtxTAhICKredWT79v9M18D2/1MpONgg4vtx5K2FzGYoAJULCHyfkHMRSM
      # L6/H0ZQPHvf7w72k9EcSQIhd0wPlMqRmfy37/8xcLiw1h4l/USx48QeKaeFWeSEu
      # DgwSk+R61HbrKvQz/U0tF98zUEyBaQXNrKmyzht0YE4peAtpbPNBeRHkd0GMae/Z
      # HOmkt8QlFQ0T14qSK7mSHaSJTUzRvFGD01cbuCDxVsyCWWsesEikXBACZLG5RCRY
      # Rn1WeX1H9eE3kKi9iueLnhzcF9yM5XqFE3f6RnDzY8nkg91lsTMSQgFcIpv6uGyp
      # 3WOTNSC9SoFyI3x8pCWiKOGytPUb8xk+PnOA85wYvVmT+7j6wus=
      # =OVdQ
      # -----END PGP SIGNATURE-----
      # gpg: Signature made Tue 07 Nov 2023 20:15:29 HKT
      # gpg:                using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE
      # gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4bug@amsat.org>" [full]
      # Primary key fingerprint: FAAB E75E 1291 7221 DCFD  6BB2 E3E3 2C2C DEAD C0DE
      
      * tag 'misc-cpus-20231107' of https://github.com/philmd/qemu
      
      : (75 commits)
        dump: Add close fd on error return to avoid resource leak
        ui/sdl2: use correct key names in win title on mac
        MAINTAINERS: Add more guest-agent related files to the corresponding section
        MAINTAINERS: Add include/hw/xtensa/mx_pic.h to the XTFPGA machine section
        MAINTAINERS: update libvirt devel mailing list address
        MAINTAINERS: Add the CAN documentation file to the CAN section
        MAINTAINERS: Add include/hw/timer/tmu012.h to the SH4 R2D section
        hw/sd: Declare QOM types using DEFINE_TYPES() macro
        hw/i2c: pmbus: reset page register for out of range reads
        hw/i2c: pmbus: immediately clear faults on request
        tests/qtest: add tests for ADM1266
        hw/sensor: add ADM1266 device model
        hw/i2c: pmbus: add VCAP register
        hw/i2c: pmbus: add fan support
        hw/i2c: pmbus: add vout mode bitfields
        hw/i2c: pmbus add support for block receive
        tests/qtest: ahci-test: add test exposing reset issue with pending callback
        hw/ide: reset: cancel async DMA operation before resetting state
        hw/cpu: Update the comments of nr_cores and nr_dies
        system/cpus: Fix CPUState.nr_cores' calculation
        ...
      
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      ed1d873c
  2. Nov 07, 2023
Loading