We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12682ea + cadd602 commit 61bc152Copy full SHA for 61bc152
accel/tcg/cpu-exec.c
@@ -601,6 +601,14 @@ void afl_setup(void) {
601
602
}
603
604
+static void afl_flush_tb(void)
605
+{
606
+ CPUState *cpu;
607
+ CPU_FOREACH(cpu) {
608
+ tb_flush(cpu);
609
+ }
610
+}
611
+
612
/* Fork server logic, invoked once we hit _start. */
613
614
void afl_forkserver(CPUState *cpu) {
@@ -656,6 +664,9 @@ void afl_forkserver(CPUState *cpu) {
656
664
657
665
658
666
667
+ // Flush translation cache just before fork server starts.
668
+ afl_flush_tb();
669
659
670
/* All right, let's await orders... */
660
671
661
672
while (1) {
0 commit comments