Received: from eggs.gnu.org ([208.118.235.92]:41248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3azi-0000to-Rr for qemu-devel@nongnu.org; Fri, 02 Mar 2012 17:30:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3azO-0000Aa-QV for qemu-devel@nongnu.org; Fri, 02 Mar 2012 17:30:34 -0500 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:41028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3azO-00009n-Jz for qemu-devel@nongnu.org; Fri, 02 Mar 2012 17:30:14 -0500 From: Stefan Weil Date: Fri, 2 Mar 2012 23:30:04 +0100 Message-Id: <1330727407-24014-4-git-send-email-sw@weilnetz.de> In-Reply-To: <1330727407-24014-1-git-send-email-sw@weilnetz.de> References: <1330727407-24014-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH 3/6] w64: Fix data type of parameters for flush_icache_range List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Weil flush_icache_range takes two address parameters which must be large enough to address any address of the host. For hosts with sizeof(unsigned long) == sizeof(void *), this patch changes nothing. All currently supported hosts fall into this category. For w64 hosts, sizeof(unsigned long) is 4 while sizeof(void *) is 8, so the use of tcg_target_ulong is needed for i386 and tci (the tcg targets which work with w64). Signed-off-by: Stefan Weil --- tcg/i386/tcg-target.h | 3 ++- tcg/tci/tcg-target.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index adbb036..c3cfe05 100644 --- a/tcg/i386/tcg-target.h +++ b/tcg/i386/tcg-target.h @@ -123,6 +123,7 @@ typedef enum { # define TCG_AREG0 TCG_REG_EBP #endif -static inline void flush_icache_range(unsigned long start, unsigned long stop) +static inline void flush_icache_range(tcg_target_ulong start, + tcg_target_ulong stop) { } diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h index 03e0fd1..81fcc0f 100644 --- a/tcg/tci/tcg-target.h +++ b/tcg/tci/tcg-target.h @@ -157,7 +157,8 @@ void tci_disas(uint8_t opc); unsigned long tcg_qemu_tb_exec(CPUState *env, uint8_t *tb_ptr); #define tcg_qemu_tb_exec tcg_qemu_tb_exec -static inline void flush_icache_range(unsigned long start, unsigned long stop) +static inline void flush_icache_range(tcg_target_ulong start, + tcg_target_ulong stop) { } -- 1.7.9