On 1/8/22 16:09, Ard Biesheuvel wrote: > When running under KVM, we may decide to run the CPU in 32-bit mode, by > setting the 'aarch64=off' CPU option. In this case, we need to switch to > the 32-bit version of the GDB stub too, so that GDB has the correct view > of the CPU state. Without this, GDB debugging does not work at all, and > errors out upon connecting to the target with a mysterious 'g' packet > length error. > > Cc: Richard Henderson <[email protected]> > Cc: Peter Maydell <[email protected]> > Cc: Alex Bennee <[email protected]> > Signed-off-by: Ard Biesheuvel <[email protected]> > --- > v2: refactor existing CPUClass::gdb_... member assignments for the > 32-bit code so we can reuse it for the 64-bit code
Way cleaner. Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
