Fix tb->icount > TCG_MAX_INSNS for edges
Aparently tcg_tb_alloc does not return a 0ed field, which can cause icount to appear to have a value above the maximum allowed number of instructions per tb.
This commit is contained in:
parent
b781a3ebce
commit
9caef2e60f
@ -1815,6 +1815,7 @@ TranslationBlock *libafl_gen_edge(CPUState *cpu, target_ulong src_block,
|
||||
tb->flags = flags;
|
||||
tb->cflags = cflags;
|
||||
tb->trace_vcpu_dstate = *cpu->trace_dstate;
|
||||
tb->icount = 0;
|
||||
tcg_ctx->tb_cflags = 0;
|
||||
|
||||
tcg_func_start(tcg_ctx);
|
||||
@ -1935,6 +1936,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
|
||||
tb->flags = flags;
|
||||
tb->cflags = cflags;
|
||||
tb->trace_vcpu_dstate = *cpu->trace_dstate;
|
||||
tb->icount = 0;
|
||||
tcg_ctx->tb_cflags = cflags;
|
||||
tb_overflow:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user