Skip to content

Commit 05e870d

Browse files
authored
Merge branch 'AFLplusplus:master' into master
2 parents f252853 + 61bc152 commit 05e870d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

accel/tcg/cpu-exec.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,14 @@ void afl_setup(void) {
601601

602602
}
603603

604+
static void afl_flush_tb(void)
605+
{
606+
CPUState *cpu;
607+
CPU_FOREACH(cpu) {
608+
tb_flush(cpu);
609+
}
610+
}
611+
604612
/* Fork server logic, invoked once we hit _start. */
605613

606614
void afl_forkserver(CPUState *cpu) {
@@ -656,6 +664,9 @@ void afl_forkserver(CPUState *cpu) {
656664

657665
}
658666

667+
// Flush translation cache just before fork server starts.
668+
afl_flush_tb();
669+
659670
/* All right, let's await orders... */
660671

661672
while (1) {

0 commit comments

Comments
 (0)