From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLXm3-0006ew-2G for qemu-devel@nongnu.org; Sun, 15 May 2011 05:38:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLXm2-000611-7Z for qemu-devel@nongnu.org; Sun, 15 May 2011 05:38:07 -0400 Received: from s15206839.onlinehome-server.info ([87.106.34.166]:34735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLXm2-00060l-1O for qemu-devel@nongnu.org; Sun, 15 May 2011 05:38:06 -0400 From: Stefan Weil Date: Sun, 15 May 2011 11:38:04 +0200 Message-Id: <1305452284-32003-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] w32: Fix compilation and replace non-portable usage of ulong List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno ulong is undefined for w32 (and maybe other) compilations. Replace it by uintptr_t (which also fixes compilation for w64 and is a better choice for pointer to integer conversions). Cc: Aurelien Jarno Signed-off-by: Stefan Weil --- 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, target_ulong newtls) #if !defined(CONFIG_USER_ONLY) static inline int booke206_tlbe_id(CPUState *env, ppcemb_tlb_t *tlbe) { - ulong tlbel = (ulong)tlbe; - ulong tlbl = (ulong)env->tlb; + uintptr_t tlbel = (uintptr_t)tlbe; + uintptr_t tlbl = (uintptr_t)env->tlb; return (tlbel - tlbl) / sizeof(env->tlb[0]); } -- 1.5.6.5