aboutsummaryrefslogtreecommitdiff
path: root/tcg/arm
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-08-20 14:22:50 -0700
committerRichard Henderson <rth@twiddle.net>2013-09-02 09:08:29 -0700
commitb93949ef6a5dea2b22987f2aa3028068e751a7e4 (patch)
tree3a2ef55c0ef0ec406b377d7b794a58ab5b4e2cc0 /tcg/arm
parent35aa3fb38753bd1557af8370994ce6c5b599e65c (diff)
downloadqemu-b93949ef6a5dea2b22987f2aa3028068e751a7e4.zip
qemu-b93949ef6a5dea2b22987f2aa3028068e751a7e4.tar.gz
qemu-b93949ef6a5dea2b22987f2aa3028068e751a7e4.tar.bz2
tcg: Change flush_icache_range arguments to uintptr_t
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/arm')
-rw-r--r--tcg/arm/tcg-target.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h
index ed48092..9482bfa 100644
--- a/tcg/arm/tcg-target.h
+++ b/tcg/arm/tcg-target.h
@@ -92,15 +92,14 @@ enum {
TCG_AREG0 = TCG_REG_R6,
};
-static inline void flush_icache_range(tcg_target_ulong start,
- tcg_target_ulong stop)
+static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
{
#if QEMU_GNUC_PREREQ(4, 1)
__builtin___clear_cache((char *) start, (char *) stop);
#else
- register unsigned long _beg __asm ("a1") = start;
- register unsigned long _end __asm ("a2") = stop;
- register unsigned long _flg __asm ("a3") = 0;
+ register uintptr_t _beg __asm("a1") = start;
+ register uintptr_t _end __asm("a2") = stop;
+ register uintptr_t _flg __asm("a3") = 0;
__asm __volatile__ ("swi 0x9f0002" : : "r" (_beg), "r" (_end), "r" (_flg));
#endif
}