aboutsummaryrefslogtreecommitdiff
path: root/exec-all.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-09-21 10:48:51 -0700
committerRichard Henderson <rth@twiddle.net>2012-09-21 22:02:20 +0200
commit5bbd2cae8e087b4329e17c3f44439096e4c3ec6a (patch)
treee9015aac3a788847b42b2133989902452c24c630 /exec-all.h
parent26adfb759c4c6ad42958c365812945316f3468ae (diff)
tcg-sparc: Fix and enable direct TB chaining.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/exec-all.h b/exec-all.h
index dba96098b8..6516da071d 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -132,9 +132,10 @@ static inline void tlb_flush(CPUArchState *env, int flush_global)
#define CODE_GEN_AVG_BLOCK_SIZE 64
#endif
-#if defined(_ARCH_PPC) || defined(__x86_64__) || defined(__arm__) || defined(__i386__)
-#define USE_DIRECT_JUMP
-#elif defined(CONFIG_TCG_INTERPRETER)
+#if defined(__arm__) || defined(_ARCH_PPC) \
+ || defined(__x86_64__) || defined(__i386__) \
+ || defined(__sparc__) \
+ || defined(CONFIG_TCG_INTERPRETER)
#define USE_DIRECT_JUMP
#endif
@@ -244,6 +245,8 @@ static inline void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr)
__asm __volatile__ ("swi 0x9f0002" : : "r" (_beg), "r" (_end), "r" (_flg));
#endif
}
+#elif defined(__sparc__)
+void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr);
#else
#error tb_set_jmp_target1 is missing
#endif