aboutsummaryrefslogtreecommitdiff
path: root/dyngen-exec.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-03 23:44:44 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-01-03 23:44:44 +0000
commitc46878786af930f8f06695371ee80ffa8acf98ef (patch)
tree7f53bf7917001180ca8a5133b3b345c3cd1916ba /dyngen-exec.h
parent0fa85d43d47151e71e63754e419340bfcff97e80 (diff)
labels support in dyngen
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1196 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'dyngen-exec.h')
-rw-r--r--dyngen-exec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dyngen-exec.h b/dyngen-exec.h
index 86087ca623..62bcbf33b5 100644
--- a/dyngen-exec.h
+++ b/dyngen-exec.h
@@ -211,12 +211,14 @@ extern int __op_jmp0, __op_jmp1, __op_jmp2, __op_jmp3;
#ifdef __i386__
#define EXIT_TB() asm volatile ("ret")
+#define GOTO_LABEL_PARAM(n) asm volatile ("jmp __op_gen_label" #n)
#endif
#ifdef __x86_64__
#define EXIT_TB() asm volatile ("ret")
#endif
#ifdef __powerpc__
#define EXIT_TB() asm volatile ("blr")
+#define GOTO_LABEL_PARAM(n) asm volatile ("b __op_gen_label" #n)
#endif
#ifdef __s390__
#define EXIT_TB() asm volatile ("br %r14")