w64: Change data type of parameters for flush_icache_range
authorStefan Weil <sw@weilnetz.de>
Fri, 2 Mar 2012 22:30:05 +0000 (23:30 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 3 Mar 2012 18:10:21 +0000 (18:10 +0000)
The TCG targets i386 and tci needed a change of the function
prototype for w64.

This change is currently not needed for the other TCG targets,
but it can be applied to avoid code differences.

Cc: Blue Swirl <blauwirbel@gmail.com>
Cc: Andrzej Zaborowski <balrogg@gmail.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/arm/tcg-target.h
tcg/hppa/tcg-target.h
tcg/ia64/tcg-target.h
tcg/mips/tcg-target.h
tcg/s390/tcg-target.h
tcg/sparc/tcg-target.h

index 0035b471fe857fac7e3ce776179af40806d9587b..f90b834795b70eed1a8c0868de2c17ed2ea2079b 100644 (file)
@@ -81,7 +81,8 @@ enum {
     TCG_AREG0 = TCG_REG_R6,
 };
 
-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)
 {
 #if QEMU_GNUC_PREREQ(4, 1)
     __builtin___clear_cache((char *) start, (char *) stop);
index 7f3c4cc3e57290f21ddaccf002ec38846924fd68..d4bf6fe756c1de9d7331bab82efccdf51401aa2b 100644 (file)
@@ -107,7 +107,9 @@ typedef enum {
 /* Note: must be synced with dyngen-exec.h */
 #define TCG_AREG0 TCG_REG_R17
 
-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)
 {
     start &= ~31;
     while (start <= stop) {
index c3880890048307a49545d2338bfe60c438de82f8..0631b9f1805a5661c31f0deabb8cf450468d22c8 100644 (file)
@@ -146,7 +146,8 @@ typedef enum {
 /* Guest base is supported */
 #define TCG_TARGET_HAS_GUEST_BASE
 
-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)
 {
     start = start & ~(32UL - 1UL);
     stop = (stop + (32UL - 1UL)) & ~(32UL - 1UL);
index 477bc38b016bf74a16b654c6081a8108da6d292f..d3c804d9a4f434e7f3119e29c6cab7d49b080bfe 100644 (file)
@@ -108,7 +108,8 @@ typedef enum {
 #include <sys/cachectl.h>
 #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)
 {
     cacheflush ((void *)start, stop-start, ICACHE);
 }
index e4cd6418a9adb9b6506cbb372365a96eb9a86b57..d12f90b7055b96a83fd1e2e422e23699b0026641 100644 (file)
@@ -100,6 +100,7 @@ enum {
     TCG_AREG0 = TCG_REG_R10,
 };
 
-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)
 {
 }
index c3fe1311193fcdb69719528b9aea17944292ba34..ee2274d595411567bac5d449c01985e032e9e9d1 100644 (file)
@@ -134,7 +134,8 @@ typedef enum {
 #define TCG_AREG0 TCG_REG_G6
 #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)
 {
     unsigned long p;