Received: from eggs.gnu.org ([140.186.70.92]:51284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNW4h-0004vZ-EC for qemu-devel@nongnu.org; Fri, 20 May 2011 16:13:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNW4g-00084c-GO for qemu-devel@nongnu.org; Fri, 20 May 2011 16:13:31 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:57584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNW4g-00084Q-8x for qemu-devel@nongnu.org; Fri, 20 May 2011 16:13:30 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Fri, 20 May 2011 22:13:24 +0200 Message-Id: <1305922404-44379-1-git-send-email-andreas.faerber@web.de> In-Reply-To: <77BCB74E-BE17-44EF-AA56-DBCDDAFBF0F1@web.de> References: <77BCB74E-BE17-44EF-AA56-DBCDDAFBF0F1@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] target-ppc: Don't use ulong type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , Alexander Graf ulong is undefined on Darwin. Use uintptr_t instead. Cc: Alexander Graf Signed-off-by: Andreas F=C3=A4rber --- target-ppc/cpu.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 7a6a7df..8e4582f 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -1929,8 +1929,8 @@ static inline void cpu_set_tls(CPUState *env, targe= t_ulong newtls) #if !defined(CONFIG_USER_ONLY) static inline int booke206_tlbe_id(CPUState *env, ppcemb_tlb_t *tlbe) { - ulong tlbel =3D (ulong)tlbe; - ulong tlbl =3D (ulong)env->tlb; + uintptr_t tlbel =3D (uintptr_t)tlbe; + uintptr_t tlbl =3D (uintptr_t)env->tlb; =20 return (tlbel - tlbl) / sizeof(env->tlb[0]); } --=20 1.7.3.4