Skip to content

Commit 31059ad

Browse files
committed
do not instrument direct jump
1 parent 20dea26 commit 31059ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

accel/tcg/cpu-exec.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ cpu_exec_loop(CPUState *cpu, SyncClocks *sc)
10691069
if (last_tb) {
10701070
// tb_add_jump(last_tb, tb_exit, tb);
10711071

1072-
//if (last_tb->jmp_reset_offset[1] != TB_JMP_OFFSET_INVALID) {
1072+
if (last_tb->jmp_reset_offset[1] != TB_JMP_OFFSET_INVALID) {
10731073
mmap_lock();
10741074
edge = libafl_gen_edge(cpu, last_tb->pc, pc, tb_exit, cs_base, flags, cflags);
10751075
mmap_unlock();
@@ -1081,9 +1081,9 @@ cpu_exec_loop(CPUState *cpu, SyncClocks *sc)
10811081
} else {
10821082
tb_add_jump(last_tb, tb_exit, tb);
10831083
}
1084-
/*} else {
1084+
} else {
10851085
tb_add_jump(last_tb, tb_exit, tb);
1086-
}*/
1086+
}
10871087
}
10881088

10891089
if (has_libafl_edge) {

0 commit comments

Comments
 (0)