Skip to content

target/arm: Support MVE in gdbstub

Peter Maydell qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5configs: Don't include 32-bit-only GDB XML in aarch64 linux configsconfigs/targets/aarch64-linux-user.mak configs/targets/aarch64_be-linux-user.mak+2 -21 reply
2/5target/arm: Fix coding style issues in gdbstub code in helper.ctarget/arm/helper.c+16 -72 replies
3/5target/arm: Move gdbstub related code out of helper.ctarget/arm/gdbstub.c target/arm/gdbstub64.c target/arm/helper.c +1 more+277 -2712 replies
4/5target/arm: Don't put FPEXC and FPSID in org.gnu.gdb.arm.vfp XMLconfigs/targets/aarch64-softmmu.mak configs/targets/arm-linux-user.mak configs/targets/arm-softmmu.mak +6 more+61 -261 reply
5/5target/arm: Advertise MVE to gdb when presentconfigs/targets/aarch64-softmmu.mak configs/targets/arm-linux-user.mak configs/targets/arm-softmmu.mak +3 more+48 -41 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéRichard Henderson
1/5R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] target/arm: Support MVE in gdbstub

This patchset's aim is to report MVE to gdb via the gdbstub. That is done by the final patch, which is an RFC because the gdb patches to support it are not yet upstream and so the XML format isn't final. (Sending the XML works fine with a GDB without the MVE support; you just don't get the auto-generated pseudo-registers that display the Q-regs, so all you see is the S and D reg versions of the data.)

Patches 1 through 4 are cleanup of the arm gdbstub related code of various kinds; this part of the series should be OK to go into QEMU as soon as it's reviewed.

Luis: you'll find that with this entire patchset a GDB built with your patches doesn't crash, because in patch 4 I stopped QEMU reporting FPSID and FPEXC in the org.gnu.gdb.arm.vfp XML feature.

thanks
-- PMM

Peter Maydell (5):
configs: Don't include 32-bit-only GDB XML in aarch64 linux configs target/arm: Fix coding style issues in gdbstub code in helper.c target/arm: Move gdbstub related code out of helper.c target/arm: Don't put FPEXC and FPSID in org.gnu.gdb.arm.vfp XML [RFC] target/arm: Advertise MVE to gdb when present

 configs/targets/aarch64-linux-user.mak    |   2 +-
 configs/targets/aarch64-softmmu.mak       |   2 +-
 configs/targets/aarch64_be-linux-user.mak |   2 +-
 configs/targets/arm-linux-user.mak        |   2 +-
 configs/targets/arm-softmmu.mak           |   2 +-
 configs/targets/armeb-linux-user.mak      |   2 +-
 target/arm/internals.h                    |   7 +
 target/arm/gdbstub.c                      | 179 +++++++++++++++
 target/arm/gdbstub64.c                    | 140 ++++++++++++
 target/arm/helper.c                       | 262 ----------------------
 gdb-xml/arm-m-profile-mve.xml             |  19 ++
 gdb-xml/arm-neon.xml                      |   2 -
 gdb-xml/arm-vfp-sysregs.xml               |  17 ++
 gdb-xml/arm-vfp.xml                       |   2 -
 gdb-xml/arm-vfp3.xml                      |   2 -
 15 files changed, 368 insertions(+), 274 deletions(-)
 create mode 100644 gdb-xml/arm-m-profile-mve.xml
 create mode 100644 gdb-xml/arm-vfp-sysregs.xml
Signature · 1 line
2.20.1