aboutsummaryrefslogtreecommitdiff
path: root/tcg/i386/tcg-target.h
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-03-02 23:30:04 +0100
committerBlue Swirl <blauwirbel@gmail.com>2012-03-03 18:10:19 +0000
commitf57a51603987a600952113103bbd777333a2737a (patch)
tree8c9077856b669490b92c52f3c8d1511ea01801d7 /tcg/i386/tcg-target.h
parentc38bb94a995fd4b7f92ff933c19c1a1ffbe9df5b (diff)
w64: Fix data type of parameters for flush_icache_range
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 <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/i386/tcg-target.h')
-rw-r--r--tcg/i386/tcg-target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h
index adbb036905..c3cfe05f62 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)
{
}