Fix Windows build for AFL integration

This commit is contained in:
2021-10-25 16:11:58 +02:00
parent 1fa2eb688b
commit 7ac7c23c12
11 changed files with 23 additions and 2 deletions

View File

@@ -7625,6 +7625,7 @@ static void ppc_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
LOG_DISAS("nip=" TARGET_FMT_lx " super=%d ir=%d\n",
ctx->base.pc_next, ctx->mem_idx, (int)msr_ir);
#ifdef UNICORN_HAS_AFL
if (uc->afl) {
// UNICORN-AFL supports (and needs) multiple exits.
uint64_t *exits = uc->exits;
@@ -7639,6 +7640,7 @@ static void ppc_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
}
}
}
#endif
// Unicorn: end address tells us to stop emulation
if (ctx->base.pc_next == uc->addr_end) {