]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ARM host fixes
authorPaul Brook <paul@codesourcery.com>
Fri, 17 Jul 2009 10:21:12 +0000 (11:21 +0100)
committerPaul Brook <paul@codesourcery.com>
Fri, 17 Jul 2009 10:21:12 +0000 (11:21 +0100)
Minor TCG cleanups and warning fixes for ARM hosts.

Signed-off-by: Paul Brook <paul@codesourcery.com>
tcg/arm/tcg-target.c
tcg/arm/tcg-target.h

index 8139da10c2ff83ca9214608efff6fb38d8510cee..1edcd103f3eecc9090a654582ffd14305867901a 100644 (file)
@@ -1567,7 +1567,7 @@ static inline void tcg_out_st(TCGContext *s, TCGType type, int arg,
     tcg_out_st32(s, COND_AL, arg, arg1, arg2);
 }
 
-void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val)
+static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val)
 {
     if (val > 0)
         if (val < 0x100)
index 8f5016fc467b7d0acefa8e067e2d98488f9b41f1..78ab8fd3e539481862d87513387f761785abbb14 100644 (file)
@@ -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;