parent
78882f40cf
commit
036a755ffa
@ -0,0 +1,28 @@
|
|||||||
|
--- qemu-2.10.0-rc3-clean/accel/tcg/cpu-exec.c 2017-08-15 11:39:41.000000000 -0700
|
||||||
|
+++ qemu-2.10.0-rc3/accel/tcg/cpu-exec.c 2017-08-22 14:34:55.868730680 -0700
|
||||||
|
@@ -36,6 +36,8 @@
|
||||||
|
#include "sysemu/cpus.h"
|
||||||
|
#include "sysemu/replay.h"
|
||||||
|
|
||||||
|
+#include "../patches/afl-qemu-cpu-inl.h"
|
||||||
|
+
|
||||||
|
/* -icount align implementation. */
|
||||||
|
|
||||||
|
typedef struct SyncClocks {
|
||||||
|
@@ -144,6 +146,8 @@
|
||||||
|
int tb_exit;
|
||||||
|
uint8_t *tb_ptr = itb->tc_ptr;
|
||||||
|
|
||||||
|
+ AFL_QEMU_CPU_SNIPPET2;
|
||||||
|
+
|
||||||
|
qemu_log_mask_and_addr(CPU_LOG_EXEC, itb->pc,
|
||||||
|
"Trace %p [%d: " TARGET_FMT_lx "] %s\n",
|
||||||
|
itb->tc_ptr, cpu->cpu_index, itb->pc,
|
||||||
|
@@ -365,6 +369,7 @@
|
||||||
|
if (!tb) {
|
||||||
|
/* if no translated code available, then translate it now */
|
||||||
|
tb = tb_gen_code(cpu, pc, cs_base, flags, 0);
|
||||||
|
+ AFL_QEMU_CPU_SNIPPET1;
|
||||||
|
}
|
||||||
|
|
||||||
|
mmap_unlock();
|
Loading…
Reference in new issue