cpu: Introduce CPUState::gdb_num_regs and CPUClass::gdb_num_core_regs
CPUState::gdb_num_regs replaces num_g_regs.
CPUClass::gdb_num_core_regs replaces NUM_CORE_REGS.
Allows building gdb_register_coprocessor() for xtensa, too.
As a side effect this should fix coprocessor register numbering for SMP.
Acked-by: Michael Walle <michael@walle.cc> (for lm32)
Acked-by: Max Filippov <jcmvbkbc@gmail.com> (for xtensa)
Signed-off-by:
Andreas Färber <afaerber@suse.de>
Showing
- gdbstub.c 19 additions, 64 deletionsgdbstub.c
- include/qom/cpu.h 6 additions, 1 deletioninclude/qom/cpu.h
- qom/cpu.c 9 additions, 0 deletionsqom/cpu.c
- target-alpha/cpu.c 1 addition, 0 deletionstarget-alpha/cpu.c
- target-arm/cpu.c 1 addition, 0 deletionstarget-arm/cpu.c
- target-cris/cpu.c 2 additions, 0 deletionstarget-cris/cpu.c
- target-i386/cpu.c 1 addition, 0 deletionstarget-i386/cpu.c
- target-lm32/cpu.c 1 addition, 0 deletionstarget-lm32/cpu.c
- target-m68k/cpu.c 1 addition, 0 deletionstarget-m68k/cpu.c
- target-microblaze/cpu.c 1 addition, 0 deletionstarget-microblaze/cpu.c
- target-mips/cpu.c 2 additions, 0 deletionstarget-mips/cpu.c
- target-openrisc/cpu.c 1 addition, 0 deletionstarget-openrisc/cpu.c
- target-ppc/translate_init.c 2 additions, 0 deletionstarget-ppc/translate_init.c
- target-s390x/cpu.c 1 addition, 0 deletionstarget-s390x/cpu.c
- target-sh4/cpu.c 1 addition, 0 deletionstarget-sh4/cpu.c
- target-sparc/cpu.c 6 additions, 0 deletionstarget-sparc/cpu.c
- target-xtensa/cpu.c 3 additions, 0 deletionstarget-xtensa/cpu.c
- target-xtensa/helper.c 8 additions, 0 deletionstarget-xtensa/helper.c
Loading
Please register or sign in to comment