Skip to content

target/microblaze: Add GDB XML and correct SReg reporting

Joe Komlodi qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesIn review
  2. v14 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- 1/4: Added missing core XML file

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/microblaze: gdb: Add dynamic GDB XML register supportconfigure gdb-xml/microblaze-core.xml target/microblaze/cpu.c +2 more+201 -02 replies
2/4target/microblaze: gdb: Extend the number of registers presented to GDBtarget/microblaze/cpu.c target/microblaze/gdbstub.c+50 -41 reply
3/4target/microblaze: gdb: Fix incorrect SReg reportingtarget/microblaze/gdbstub.c+49 -101 reply
4/4target/microblaze: monitor: Increase the number of registers reportedtarget/microblaze/translate.c+14 -21 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEdgar E. Iglesias
SeriesR-b
1/4
2/4R-b
3/4R-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH V2 0/4] target/microblaze: Add GDB XML and correct SReg reporting

Hi all,

This series adds dynamic GDB XML support for Micraoblaze CPUs, and fixes an issue when reporting Microblaze SRegs through GDB.

The SRegs used to be printed out by iterating over the SReg array, but the SReg array isn't laid out in memory in the same order that GDB expects them.

When reporting register to GDB, note that even though 32-bit
Microblaze supports having certain registers wider than 32-bits, we're repoting all of them as being 32-bits wide right now to maintain compatibility with GDB.

Thanks!
Joe

Changelog:
v1 -> v2
- 1/4: Added missing core XML file

Joe Komlodi (4):
target/microblaze: gdb: Add dynamic GDB XML register support target/microblaze: gdb: Extend the number of registers presented to
GDB
target/microblaze: gdb: Fix incorrect SReg reporting target/microblaze: monitor: Increase the number of registers reported

 configure                     |   1 +
 gdb-xml/microblaze-core.xml   |  64 +++++++++++++
 target/microblaze/cpu.c       |   6 +-
 target/microblaze/cpu.h       |   9 ++
 target/microblaze/gdbstub.c   | 214 +++++++++++++++++++++++++++++++++++++++++-
 target/microblaze/translate.c |  16 +++-
 6 files changed, 304 insertions(+), 6 deletions(-)
 create mode 100644 gdb-xml/microblaze-core.xml
Signature · 1 line
2.7.4