From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoJDh-00072h-3X for qemu-devel@nongnu.org; Sun, 16 Jun 2013 16:06:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoJDg-0007Rd-0V for qemu-devel@nongnu.org; Sun, 16 Jun 2013 16:06:37 -0400 Received: from cantor2.suse.de ([195.135.220.15]:39080 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoJDf-0007RR-RB for qemu-devel@nongnu.org; Sun, 16 Jun 2013 16:06:35 -0400 Message-ID: <51BE1AC7.5030604@suse.de> Date: Sun, 16 Jun 2013 22:06:31 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1368505980-17151-1-git-send-email-john.rigby@linaro.org> <1368505980-17151-5-git-send-email-john.rigby@linaro.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 04/12] ARM: Add AArch64 translation stub List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Alexander Graf , John Rigby , Paul Brook , qemu-devel@nongnu.org Am 20.05.2013 14:57, schrieb Peter Maydell: > On 14 May 2013 05:32, John Rigby wrote: >> @@ -10038,6 +10042,11 @@ void cpu_dump_state(CPUARMState *env, FILE *f= , fprintf_function cpu_fprintf, >> int i; >> uint32_t psr; >> >> + if (is_a64(env)) { >> + cpu_dump_state_a64(env, f, cpu_fprintf, flags); >> + return; >> + } >> + >=20 > This breaks building of the 32 bit ARM target: >=20 > LINK arm-softmmu/qemu-system-arm > target-arm/translate.o: In function `cpu_dump_state': > /home/petmay01/linaro/qemu-from-laptop/qemu/target-arm/translate.c:1004= 6: > undefined reference to `cpu_dump_state_a64' >=20 > because cpu_dump_state_a64() is in a file which is > only built for 64 bit. My qom-cpu-10 series may help here, it turns cpu_dump_state() into a simple helper function calling CPUClass::dump_state(). So a Cortex-A5x class_init or TARGET_AARCH64 for the base class_init would simply assign the 64-bit version of the callback, leaving 32-bit target unaffected (note: I didn't read the whole patch). Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg