From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZIyW-00035g-V5 for qemu-devel@nongnu.org; Fri, 26 Feb 2016 09:02:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZIyT-0000f9-PP for qemu-devel@nongnu.org; Fri, 26 Feb 2016 09:02:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZIyT-0000f5-Km for qemu-devel@nongnu.org; Fri, 26 Feb 2016 09:02:29 -0500 Date: Fri, 26 Feb 2016 15:02:15 +0100 From: Andrew Jones Message-ID: <20160226140215.4wpdvt3xgnh2s6s7@hawk.localdomain> References: <1456492533-17171-1-git-send-email-alex.bennee@linaro.org> <1456492533-17171-8-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1456492533-17171-8-git-send-email-alex.bennee@linaro.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC 07/11] arm/run: allow aarch64 to start arm binaries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: mttcg@greensocs.com, peter.maydell@linaro.org, claudio.fontana@huawei.com, a.spyridakis@virtualopensystems.com, mark.burton@greensocs.com, qemu-devel@nongnu.org, will.deacon@arm.com, a.rigo@virtualopensystems.com, crosthwaitepeter@gmail.com, pbonzini@redhat.com, rth@twiddle.net, aurelien@aurel32.net, fred.konrad@greensocs.com On Fri, Feb 26, 2016 at 01:15:29PM +0000, Alex Benn=E9e wrote: > AArch64 hosts can happily run AArch32 binaries. We just need to ensure > that we use "cpu host,aarch64=3Doff" when specifying the CPU type. >=20 > Signed-off-by: Alex Benn=E9e > --- > arm/run | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) >=20 > diff --git a/arm/run b/arm/run > index 0eaf23a..f1a6b7d 100755 > --- a/arm/run > +++ b/arm/run > @@ -38,7 +38,15 @@ if [ "$HOST" =3D "aarch64" ] && [ "$ACCEL" =3D "kvm"= ]; then > fi > fi > =20 > -qemu=3D"${QEMU:-qemu-system-$ARCH_NAME}" > +if [ "$ARCH" =3D "arm" ] && [ "$HOST" =3D "aarch64" ]; then > + qemu=3D"${QEMU:-qemu-system-$HOST}" > + if [ "$ACCEL" =3D "kvm" ]; then > + processor=3D"host,aarch64=3Doff" > + fi > +else > + qemu=3D"${QEMU:-qemu-system-$ARCH_NAME}" > +fi We've got 3382e7795 "arm/run: allow tests to run in AArch32 mode" already, so I this patch should no longer be necessary. Thanks, drew > + > qpath=3D$(which $qemu 2>/dev/null) > =20 > if [ -z "$qpath" ]; then > --=20 > 2.7.1 >=20