diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index 4b53c295d4d..817725eb33c 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -44,7 +44,7 @@ static inline void gen_tb_start(TranslationBlock *tb) tcg_temp_free_i32(count); - TCGv_i64 block = tcg_const_i64((uint64_t)tb); + TCGv_i64 block = tcg_const_i64(tb->pc); gen_helper_sym_notify_block(block); tcg_temp_free_i64(block); }