blob: 853a66ad1c42dc058445019fab6453580c410904 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- a/accel/tcg/translate-all.c 2017-08-30 18:50:40.000000000 +0200
+++ b/accel/tcg/translate-all.c 2018-09-21 10:19:42.328766554 +0200
@@ -60,6 +60,8 @@
#include "exec/log.h"
#include "sysemu/cpus.h"
+#include "../patches/afl-qemu-translate-inl.h"
+
/* #define DEBUG_TB_INVALIDATE */
/* #define DEBUG_TB_FLUSH */
/* make various TB consistency checks */
@@ -1280,6 +1282,7 @@
tcg_func_start(&tcg_ctx);
tcg_ctx.cpu = ENV_GET_CPU(env);
+ afl_gen_trace(pc);
gen_intermediate_code(cpu, tb);
tcg_ctx.cpu = NULL;
|