[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] w64: Change data type of parameters for flush_i
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH 4/6] w64: Change data type of parameters for flush_icache_range |
Date: |
Fri, 2 Mar 2012 23:30:05 +0100 |
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 <address@hidden>
Cc: Andrzej Zaborowski <address@hidden>
Cc: Richard Henderson <address@hidden>
Cc: Aurelien Jarno <address@hidden>
Cc: Alexander Graf <address@hidden>
Signed-off-by: Stefan Weil <address@hidden>
---
tcg/arm/tcg-target.h | 3 ++-
tcg/hppa/tcg-target.h | 4 +++-
tcg/ia64/tcg-target.h | 3 ++-
tcg/mips/tcg-target.h | 3 ++-
tcg/s390/tcg-target.h | 3 ++-
tcg/sparc/tcg-target.h | 3 ++-
6 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h
index 0035b47..f90b834 100644
--- a/tcg/arm/tcg-target.h
+++ b/tcg/arm/tcg-target.h
@@ -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);
diff --git a/tcg/hppa/tcg-target.h b/tcg/hppa/tcg-target.h
index 7f3c4cc..d4bf6fe 100644
--- a/tcg/hppa/tcg-target.h
+++ b/tcg/hppa/tcg-target.h
@@ -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) {
diff --git a/tcg/ia64/tcg-target.h b/tcg/ia64/tcg-target.h
index c388089..0631b9f 100644
--- a/tcg/ia64/tcg-target.h
+++ b/tcg/ia64/tcg-target.h
@@ -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);
diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h
index 477bc38..d3c804d 100644
--- a/tcg/mips/tcg-target.h
+++ b/tcg/mips/tcg-target.h
@@ -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);
}
diff --git a/tcg/s390/tcg-target.h b/tcg/s390/tcg-target.h
index e4cd641..d12f90b 100644
--- a/tcg/s390/tcg-target.h
+++ b/tcg/s390/tcg-target.h
@@ -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)
{
}
diff --git a/tcg/sparc/tcg-target.h b/tcg/sparc/tcg-target.h
index c3fe131..ee2274d 100644
--- a/tcg/sparc/tcg-target.h
+++ b/tcg/sparc/tcg-target.h
@@ -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;
--
1.7.9
- Re: [Qemu-devel] [PATCH 5/6] cache-utils: Change data type of parameters for flush_icache_range, (continued)
- Re: [Qemu-devel] [PATCH 5/6] cache-utils: Change data type of parameters for flush_icache_range, Alexander Graf, 2012/03/02
- Re: [Qemu-devel] [PATCH 5/6] cache-utils: Change data type of parameters for flush_icache_range, Alexander Graf, 2012/03/05
- Re: [Qemu-devel] [PATCH 5/6] cache-utils: Change data type of parameters for flush_icache_range, Stefan Weil, 2012/03/05
- Re: [Qemu-devel] [PATCH 5/6] cache-utils: Change data type of parameters for flush_icache_range, Alexander Graf, 2012/03/05
- [Qemu-devel] [PATCH] cache-utils: Add missing include file for uintptr_t, Stefan Weil, 2012/03/05
- Re: [Qemu-devel] [PATCH] cache-utils: Add missing include file for uintptr_t, Alexander Graf, 2012/03/06
- Re: [Qemu-devel] [PATCH] cache-utils: Add missing include file for uintptr_t, Blue Swirl, 2012/03/11
[Qemu-devel] [PATCH 3/6] w64: Fix data type of parameters for flush_icache_range, Stefan Weil, 2012/03/02
[Qemu-devel] [PATCH 1/6] w64: Fix size of ram_addr_t, Stefan Weil, 2012/03/02
[Qemu-devel] [PATCH 6/6] w64: fix type casts when calling flush_icache_range, Stefan Weil, 2012/03/02
[Qemu-devel] [PATCH 4/6] w64: Change data type of parameters for flush_icache_range,
Stefan Weil <=
Re: [Qemu-devel] [PATCH 0/6] w64: Improve compilation with MinGW-w64, Blue Swirl, 2012/03/04