Return-Path: Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id eb14sm3351439edb.16.2022.01.10.02.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jan 2022 02:22:34 -0800 (PST) Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4D5131FFB7; Mon, 10 Jan 2022 10:22:33 +0000 (GMT) References: <20220108150952.1483911-1-ardb@kernel.org> User-agent: mu4e 1.7.5; emacs 28.0.91 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Ard Biesheuvel Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Richard Henderson , Peter Maydell 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 In-reply-to: <20220108150952.1483911-1-ardb@kernel.org> Message-ID: <87lezndh5i.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TUID: CXVfWSZMghT+ Ard Biesheuvel writes: > When running under KVM, we may decide to run the CPU in 32-bit mode, by > setting the 'aarch64=3Doff' 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 > Cc: Peter Maydell > Cc: Alex Bennee > Signed-off-by: Ard Biesheuvel Reviewed-by: Alex Benn=C3=A9e --=20 Alex Benn=C3=A9e