diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-01-03 23:44:44 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-01-03 23:44:44 +0000 |
commit | c46878786af930f8f06695371ee80ffa8acf98ef (patch) | |
tree | 7f53bf7917001180ca8a5133b3b345c3cd1916ba /dyngen-op.h | |
parent | 0fa85d43d47151e71e63754e419340bfcff97e80 (diff) | |
download | hqemu-c46878786af930f8f06695371ee80ffa8acf98ef.zip hqemu-c46878786af930f8f06695371ee80ffa8acf98ef.tar.gz |
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dyngen-op.h b/dyngen-op.h new file mode 100644 index 0000000..f77a475 --- /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; +} |