Received: from eggs.gnu.org ([140.186.70.92]:59163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNXRO-0005W1-2p for qemu-devel@nongnu.org; Fri, 20 May 2011 17:41:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNXRM-00058q-No for qemu-devel@nongnu.org; Fri, 20 May 2011 17:41:01 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:39247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNXRM-00058j-B5 for qemu-devel@nongnu.org; Fri, 20 May 2011 17:41:00 -0400 Message-Id: <58142038-C7DF-4144-98DC-65A05F0D6343@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Fri, 20 May 2011 23:40:51 +0200 References: <1304979326-30338-1-git-send-email-agraf@suse.de> <1304979326-30338-6-git-send-email-agraf@suse.de> <77BCB74E-BE17-44EF-AA56-DBCDDAFBF0F1@web.de> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] [PATCH 5/7] PPC: Implement e500 (FSL) MMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf , Stefan Weil Cc: QEMU-devel Developers Am 20.05.2011 um 22:24 schrieb Alexander Graf: > Am 20.05.2011 um 21:10 schrieb Andreas F=E4rber =20 > : > >> Next breakage... :( >> >> Am 10.05.2011 um 00:15 schrieb Alexander Graf: >> >>> Most of the code to support e500 style MMUs is already in place, but >>> we're missing on some of the special TLB0-TLB1 handling code and =20 >>> slightly >>> different TLB modification. >>> >>> This patch adds support for the FSL style MMU. >>> >>> Signed-off-by: Alexander Graf >> >>> diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h >>> index 2a7431c..dd2f93f 100644 >>> --- a/target-ppc/cpu.h >>> +++ b/target-ppc/cpu.h >> >>> @@ -1699,6 +1926,77 @@ static inline void cpu_set_tls(CPUState =20 >>> *env, target_ulong newtls) >>> #endif >>> } >>> >>> +#if !defined(CONFIG_USER_ONLY) >>> +static inline int booke206_tlbe_id(CPUState *env, ppcemb_tlb_t =20 >>> *tlbe) >>> +{ >>> + ulong tlbel =3D (ulong)tlbe; >>> + ulong tlbl =3D (ulong)env->tlb; >> >> CC ppc-softmmu/arch_init.o >> In file included from /Users/andreas/QEMU/qemu/qemu-common.h:130, >> from /Users/andreas/QEMU/qemu/monitor.h:4, >> from /Users/andreas/QEMU/qemu/arch_init.c:32: >> /Users/andreas/QEMU/qemu/target-ppc/cpu.h: In function =20 >> =91booke206_tlbe_id=92: >> /Users/andreas/QEMU/qemu/target-ppc/cpu.h:1932: error: =91ulong=92 =20= >> undeclared (first use in this function) >> /Users/andreas/QEMU/qemu/target-ppc/cpu.h:1932: error: (Each =20 >> undeclared identifier is reported only once >> /Users/andreas/QEMU/qemu/target-ppc/cpu.h:1932: error: for each =20 >> function it appears in.) >> /Users/andreas/QEMU/qemu/target-ppc/cpu.h:1932: error: expected =91;=92= =20 >> before =91tlbel=92 >> /Users/andreas/QEMU/qemu/target-ppc/cpu.h:1933: error: expected =91;=92= =20 >> before =91tlbl=92 >> /Users/andreas/QEMU/qemu/target-ppc/cpu.h:1935: error: =91tlbel=92 =20= >> undeclared (first use in this function) >> /Users/andreas/QEMU/qemu/target-ppc/cpu.h:1935: error: =91tlbl=92 =20 >> undeclared (first use in this function) >> make[1]: *** [arch_init.o] Error 1 >> make: *** [subdir-ppc-softmmu] Error 2 >> >> Did you mean target_ulong or unsigned long? > > Yes, sorry. Stefan already fixed this one and I sent a pull request =20= > with the fix a few hours ago. Doh! Stefan, please label such a patch "ppc" rather than "w32"! :) > If you have a machine you could spare for osx buildbot testing, we =20 > might be able to catch these earlier. I'll try to see if I can get =20 > something automated rolling too :) The other Stefan already mailed about that some time ago but I don't =20 have any servers running at home that I could offer. Maybe it's =20 possible to poison "ulong"? Andreas=