Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: third_party/afl/src/qemu_mode/patches/cpu-exec.diff

Issue 2075883002: Add American Fuzzy Lop (afl) to third_party/afl/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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));
OLDNEW
« no previous file with comments | « third_party/afl/src/qemu_mode/patches/afl-qemu-cpu-inl.h ('k') | third_party/afl/src/qemu_mode/patches/elfload.diff » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698