diff options
author | Paul Brook <paul@codesourcery.com> | 2009-07-17 11:21:12 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-07-17 11:21:12 +0100 |
commit | 2d69f3590d533ee029fb9739a2bd5339dde22bcb (patch) | |
tree | bcd4819c5332873f3659dd672746b85784198152 /tcg/arm/tcg-target.h | |
parent | 5e6500026030eccd95fb4bdacd9f5d6bbed1d929 (diff) |
ARM host fixes
Minor TCG cleanups and warning fixes for ARM hosts.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'tcg/arm/tcg-target.h')
-rw-r--r-- | tcg/arm/tcg-target.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 8f5016fc46..78ab8fd3e5 100644 --- a/tcg/arm/tcg-target.h +++ b/tcg/arm/tcg-target.h @@ -51,9 +51,10 @@ enum { TCG_REG_R12, TCG_REG_R13, TCG_REG_R14, - TCG_TARGET_NB_REGS }; +#define TCG_TARGET_NB_REGS 15 + /* used for function call generation */ #define TCG_REG_CALL_STACK TCG_REG_R13 #define TCG_TARGET_STACK_ALIGN 8 @@ -69,8 +70,7 @@ enum { static inline void flush_icache_range(unsigned long start, unsigned long stop) { #if QEMU_GNUC_PREREQ(4, 1) - void __clear_cache(char *beg, char *end); - __clear_cache((char *) start, (char *) stop); + __builtin___clear_cache((char *) start, (char *) stop); #else register unsigned long _beg __asm ("a1") = start; register unsigned long _end __asm ("a2") = stop; |