qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] target/arm/cpu64: Use 32-bit GDBstub when running in 32-b


From: Richard Henderson
Subject: Re: [PATCH v2] target/arm/cpu64: Use 32-bit GDBstub when running in 32-bit KVM mode
Date: Sat, 8 Jan 2022 10:39:22 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

On 1/8/22 7:09 AM, 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<richard.henderson@linaro.org>
Cc: Peter Maydell<peter.maydell@linaro.org>
Cc: Alex Bennee<alex.bennee@linaro.org>
Signed-off-by: Ard Biesheuvel<ardb@kernel.org>
---
v2: refactor existing CPUClass::gdb_... member assignments for the
     32-bit code so we can reuse it for the 64-bit code

  target/arm/cpu.c   | 16 +++++++++++-----
  target/arm/cpu.h   |  2 ++
  target/arm/cpu64.c |  3 +++
  3 files changed, 16 insertions(+), 5 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]