From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRSRE-0001PZ-CP for qemu-devel@nongnu.org; Sat, 22 Mar 2014 16:22:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRSR9-0007TZ-73 for qemu-devel@nongnu.org; Sat, 22 Mar 2014 16:22:40 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52933 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRSR9-0007TK-0w for qemu-devel@nongnu.org; Sat, 22 Mar 2014 16:22:35 -0400 Message-ID: <532DF109.2070401@suse.de> Date: Sat, 22 Mar 2014 21:22:33 +0100 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1395427476-25546-1-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1395427476-25546-1-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] target-arm: Load ELF images with the correct machine type for CPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Peter Crosthwaite , patches@linaro.org, Michael Matz , Alexander Graf , Dirk Mueller , Laurent Desnogues , =?ISO-8859-15?Q?Alex_Benn=E9e?= , kvmarm@lists.cs.columbia.edu, Christoffer Dall Am 21.03.2014 19:44, schrieb Peter Maydell: > When trying to load an ELF file specified via -kernel, we need to > pass load_elf() the ELF machine type corresponding to the CPU we're > booting with, not the one corresponding to the softmmu binary > we happen to be running. (The two are different in the case of > loading a 32-bit ARM ELF file into a 32 bit CPU being emulated > by qemu-system aarch64.) This was causing us to incorrectly fail > to load ELF images in this situation. >=20 > Signed-off-by: Peter Maydell Reviewed-by: Andreas F=E4rber > --- > This isn't really a big deal since we can just say "use the > qemu-system-arm binary instead". However maybe we should put > this into 2.0. Opinions? Looks un-intrusive, so +1. Cheers, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg