]> git.proxmox.com Git - qemu.git/blobdiff - gen-icount.h
vvfat: unify and correct computation of sector count
[qemu.git] / gen-icount.h
index 3268f720a595073ae98c03db88e9eb60de3d76d6..5fb3829781595029508156ea16e4d73ed4e9f92e 100644 (file)
@@ -1,3 +1,5 @@
+#include "qemu-timer.h"
+
 /* Helpers for instruction counting code generation.  */
 
 static TCGArg *icount_arg;
@@ -27,7 +29,7 @@ static void gen_icount_end(TranslationBlock *tb, int num_insns)
     if (use_icount) {
         *icount_arg = num_insns;
         gen_set_label(icount_label);
-        tcg_gen_exit_tb((long)tb + 2);
+        tcg_gen_exit_tb((tcg_target_long)tb + 2);
     }
 }