about summary refs log tree commit diff
path: root/qemu_mode/patches/afl-qemu-cpu-inl.h
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-10-05 00:01:16 +0200
committerGitHub <noreply@github.com>2019-10-05 00:01:16 +0200
commita8ff64f704b18567fd207fcb1e55bc5bc6f3c7c8 (patch)
treedbd1a3f85d640d223f22877456ca39a1a736b0d0 /qemu_mode/patches/afl-qemu-cpu-inl.h
parent9c105098ddbb5f65a24063f08ed34d09aec36b04 (diff)
parent4cf02a32a73e799f7a9fb032854117eb0d52d496 (diff)
downloadafl++-a8ff64f704b18567fd207fcb1e55bc5bc6f3c7c8.tar.gz
Merge pull request #74 from vanhauser-thc/multiarch_compcov
Multiarch CompCov
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h')
-rw-r--r--qemu_mode/patches/afl-qemu-cpu-inl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h
index 209944ee..8660ba23 100644
--- a/qemu_mode/patches/afl-qemu-cpu-inl.h
+++ b/qemu_mode/patches/afl-qemu-cpu-inl.h
@@ -33,6 +33,7 @@
 
 #include <sys/shm.h>
 #include "../../config.h"
+#include "afl-qemu-common.h"
 
 #define PERSISTENT_DEFAULT_MAX_CNT 1000
 
@@ -89,7 +90,7 @@ unsigned char is_persistent;
 target_long   persistent_stack_offset;
 unsigned char persistent_first_pass;
 unsigned char persistent_save_gpr;
-target_ulong  persistent_saved_gpr[CPU_NB_REGS];
+target_ulong  persistent_saved_gpr[AFL_REGS_NUM];
 int           persisent_retaddr_offset;
 
 /* Instrumentation ratio: */