[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: |
Alex Bennée |
Subject: |
Re: [PATCH v2] target/arm/cpu64: Use 32-bit GDBstub when running in 32-bit KVM mode |
Date: |
Mon, 10 Jan 2022 10:22:28 +0000 |
User-agent: |
mu4e 1.7.5; emacs 28.0.91 |
Ard Biesheuvel <ardb@kernel.org> writes:
> 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>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée