Re: [PATCH v17 08/14] gdbstub: Infer number of core registers from XML

2023-12-17 Thread Alistair Francis
On Wed, Dec 13, 2023 at 4:44 PM Akihiko Odaki wrote: > > GDBFeature has the num_regs member so use it where applicable to > remove magic numbers. > > Signed-off-by: Akihiko Odaki Acked-by: Alistair Francis Alistair > --- > include/hw/core/cpu.h | 3 ++- > target/s390x/cpu.h | 2 -- >

[PATCH v17 08/14] gdbstub: Infer number of core registers from XML

2023-12-12 Thread Akihiko Odaki
GDBFeature has the num_regs member so use it where applicable to remove magic numbers. Signed-off-by: Akihiko Odaki --- include/hw/core/cpu.h | 3 ++- target/s390x/cpu.h | 2 -- gdbstub/gdbstub.c | 5 - target/arm/cpu.c| 1 - target/arm/cpu64.c | 1 - target/avr/cpu