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

@@ -61,6 +61,7 @@ void translator_loop(const TranslatorOps *ops, DisasContextBase *db,
/* Reset the temp count so that we can identify leaks */
tcg_clear_temp_count();
#ifdef UNICORN_HAS_AFL
if (uc->afl) {
// UNICORN-AFL supports (and needs) multiple exits.
uint64_t *exits = cpu->uc->exits;
@@ -81,6 +82,7 @@ void translator_loop(const TranslatorOps *ops, DisasContextBase *db,
}
}
}
#endif
/* Unicorn: early check to see if the address of this block is
* the "run until" address. */