summaryrefslogtreecommitdiffstats
path: root/tcg/arm/tcg-target.h
diff options
context:
space:
mode:
authorRichard Henderson2013-08-20 23:22:50 +0200
committerRichard Henderson2013-09-02 18:08:29 +0200
commitb93949ef6a5dea2b22987f2aa3028068e751a7e4 (patch)
tree3a2ef55c0ef0ec406b377d7b794a58ab5b4e2cc0 /tcg/arm/tcg-target.h
parentqtest: Fix FMT_timeval vs time_t (diff)
downloadqemu-b93949ef6a5dea2b22987f2aa3028068e751a7e4.tar.gz
qemu-b93949ef6a5dea2b22987f2aa3028068e751a7e4.tar.xz
qemu-b93949ef6a5dea2b22987f2aa3028068e751a7e4.zip
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/tcg-target.h')
-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 ed48092431..9482bfa993 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
}