aboutsummaryrefslogtreecommitdiff
path: root/dyngen-op.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-op.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-op.h')
-rw-r--r--dyngen-op.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/dyngen-op.h b/dyngen-op.h
new file mode 100644
index 0000000000..f77a4756f7
--- /dev/null
+++ b/dyngen-op.h
@@ -0,0 +1,9 @@
+static inline int gen_new_label(void)
+{
+ return nb_gen_labels++;
+}
+
+static inline void gen_set_label(int n)
+{
+ gen_labels[n] = gen_opc_ptr - gen_opc_buf;
+}