From 6b3a9b9dc00c495f082f5800c38f462c8fefd682 Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Wed, 2 Oct 2019 21:20:41 +0200 Subject: arm compcov draft --- qemu_mode/patches/afl-qemu-cpu-inl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h') diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h index cfea04d6..30219a63 100644 --- a/qemu_mode/patches/afl-qemu-cpu-inl.h +++ b/qemu_mode/patches/afl-qemu-cpu-inl.h @@ -33,6 +33,7 @@ #include #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: */ -- cgit 1.4.1