gdbstub: Infer number of core registers from XML
commitecd6f6a8820c8fa91e4d96c1bb640913bd856343
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Tue, 27 Feb 2024 14:43:18 +0000 (27 14:43 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 28 Feb 2024 09:09:58 +0000 (28 09:09 +0000)
tree6e19dc3d6d42c39bfd11781ebf69d73225d59702
parentee59fa1dd57bac8ba8c81e02f2710ba08d1aa49d
gdbstub: Infer number of core registers from XML

GDBFeature has the num_regs member so use it where applicable to
remove magic numbers.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20231213-gdb-v17-8-777047380591@daynix.com>
[AJB: remove core reg check from microblaze read reg]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240227144335.1196131-13-alex.bennee@linaro.org>
15 files changed:
gdbstub/gdbstub.c
include/hw/core/cpu.h
target/arm/cpu.c
target/arm/cpu64.c
target/avr/cpu.c
target/hexagon/cpu.c
target/i386/cpu.c
target/loongarch/cpu.c
target/m68k/cpu.c
target/microblaze/cpu.c
target/microblaze/gdbstub.c
target/riscv/cpu.c
target/rx/cpu.c
target/s390x/cpu.c
target/s390x/cpu.h