Skip to content

gdbstub: Remove target_long_bits() from GDB register reads

Philippe Mathieu-Daudé qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10target/sparc/gdbstub: Replace gdb_get_regl() by gdb_get_reg64()target/sparc/gdbstub.c+7 -60 replies
2/10target/mips/gdbstub: Reduce to a single gdb_get_regl() calltarget/mips/gdbstub.c+43 -330 replies
3/10target/mips/gdbstub: Replace target_long_bits() by mips_env_is_64bit()target/mips/gdbstub.c target/mips/internal.h+14 -20 replies
4/10target/ppc: Factor ppc_env_is_64bit() outtarget/ppc/cpu_init.c target/ppc/internal.h+12 -11 reply
5/10target/ppc/gdbstub: Replace target_long_bits() by ppc_env_is_64bit()target/ppc/gdbstub.c+12 -71 reply
6/10target/ppc/gdbstub: Replace gdb_get_regl() by ppc_env_is_64bit()target/ppc/gdbstub.c+13 -61 reply
7/10target/riscv: Factor riscv_gdb_get_reg_mxl() outtarget/riscv/gdbstub.c+18 -111 reply
8/10target/riscv: Replace gdb_get_regl() by riscv_gdb_get_reg_mxl()target/riscv/gdbstub.c+3 -31 reply
9/10gdbstub: Remove unused gdb_get_regl()include/gdbstub/helpers.h+0 -180 replies
10/10include: Remove TARGET_LONG_SIZE definitioninclude/exec/target_long.h include/user/tswap-target.h+4 -60 replies

Reviews trailers per patch

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

PatchPierrick BouvierGlenn MilesDaniel Henrique Barboza
SeriesR-b
1/10
2/10
3/10
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/10] gdbstub: Remove target_long_bits() from GDB register reads

Prefer getting target register word size at runtime (via CPU state) instead of build time.

This allow to remove gdb_get_regl() and various target_long_bits() calls, and to eliminate the TARGET_LONG_SIZE definition.

Philippe Mathieu-Daudé (10):
target/sparc/gdbstub: Replace gdb_get_regl() by gdb_get_reg64() target/mips/gdbstub: Reduce to a single gdb_get_regl() call target/mips/gdbstub: Replace target_long_bits() by mips_env_is_64bit() target/ppc: Factor ppc_env_is_64bit() out target/ppc/gdbstub: Replace target_long_bits() by ppc_env_is_64bit() target/ppc/gdbstub: Replace gdb_get_regl() by ppc_env_is_64bit() target/riscv: Factor riscv_gdb_get_reg_mxl() out target/riscv: Replace gdb_get_regl() by riscv_gdb_get_reg_mxl()
gdbstub: Remove unused gdb_get_regl()
include: Remove TARGET_LONG_SIZE definition

 include/exec/target_long.h  |  8 ++--
 include/gdbstub/helpers.h   | 18 --------
 include/user/tswap-target.h |  2 +-
 target/mips/internal.h      |  5 +++
 target/ppc/internal.h       | 11 +++++
 target/mips/gdbstub.c       | 85 ++++++++++++++++++++++---------------
 target/ppc/cpu_init.c       |  2 +-
 target/ppc/gdbstub.c        | 38 +++++++++++------
 target/riscv/gdbstub.c      | 35 +++++++++------
 target/sparc/gdbstub.c      | 13 +++---
 10 files changed, 125 insertions(+), 92 deletions(-)
Signature · 1 line
2.55.0