OLD | NEW |
(Empty) | |
| 1 --- qemu-2.3.0/cpu-exec.c.orig 2014-12-09 14:45:40.000000000 +0000 |
| 2 +++ qemu-2.3.0/cpu-exec.c 2015-02-20 22:07:02.966000000 +0000 |
| 3 @@ -28,6 +28,8 @@ |
| 4 #include "exec/memory-internal.h" |
| 5 #include "qemu/rcu.h" |
| 6 |
| 7 +#include "../patches/afl-qemu-cpu-inl.h" |
| 8 + |
| 9 /* -icount align implementation. */ |
| 10 |
| 11 typedef struct SyncClocks { |
| 12 @@ -296,8 +298,11 @@ |
| 13 } |
| 14 not_found: |
| 15 /* if no translated code available, then translate it now */ |
| 16 + |
| 17 tb = tb_gen_code(cpu, pc, cs_base, flags, 0); |
| 18 |
| 19 + AFL_QEMU_CPU_SNIPPET1; |
| 20 + |
| 21 found: |
| 22 /* Move the last found TB to the head of the list */ |
| 23 if (likely(*ptb1)) { |
| 24 @@ -492,6 +497,9 @@ |
| 25 next_tb = 0; |
| 26 tcg_ctx.tb_ctx.tb_invalidated_flag = 0; |
| 27 } |
| 28 + |
| 29 + AFL_QEMU_CPU_SNIPPET2; |
| 30 + |
| 31 if (qemu_loglevel_mask(CPU_LOG_EXEC)) { |
| 32 qemu_log("Trace %p [" TARGET_FMT_lx "] %s\n", |
| 33 tb->tc_ptr, tb->pc, lookup_symbol(tb->pc)); |
OLD | NEW |