From 5fa4f47baec7e3dc78e685f9f8a44bf34c3eba53 Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Sat, 8 Feb 2020 18:07:31 +0100 Subject: persistent qemu mode arm/arm64 && compcov arm64 --- qemu_mode/patches/afl-qemu-common.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'qemu_mode/patches/afl-qemu-common.h') diff --git a/qemu_mode/patches/afl-qemu-common.h b/qemu_mode/patches/afl-qemu-common.h index da3d563e..4303a5e6 100644 --- a/qemu_mode/patches/afl-qemu-common.h +++ b/qemu_mode/patches/afl-qemu-common.h @@ -39,10 +39,14 @@ #define PERSISTENT_DEFAULT_MAX_CNT 1000 -#ifndef CPU_NB_REGS -#define AFL_REGS_NUM 1000 -#else +#ifdef CPU_NB_REGS #define AFL_REGS_NUM CPU_NB_REGS +#elif TARGET_ARM +#define AFL_REGS_NUM 32 +#elif TARGET_AARCH64 +#define AFL_REGS_NUM 32 +#else +#define AFL_REGS_NUM 100 #endif /* NeverZero */ -- cgit 1.4.1