about summary refs log tree commit diff
path: root/qemu_mode/patches/afl-qemu-common.h
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-02-08 18:07:31 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2020-02-08 18:07:31 +0100
commit5fa4f47baec7e3dc78e685f9f8a44bf34c3eba53 (patch)
tree272dbbc6a08595048a1ff081b46bc83e42663bad /qemu_mode/patches/afl-qemu-common.h
parent0403f008e3c68a9b212d38a5fc0de79eb2f40895 (diff)
downloadafl++-5fa4f47baec7e3dc78e685f9f8a44bf34c3eba53.tar.gz
persistent qemu mode arm/arm64 && compcov arm64
Diffstat (limited to 'qemu_mode/patches/afl-qemu-common.h')
-rw-r--r--qemu_mode/patches/afl-qemu-common.h10
1 files changed, 7 insertions, 3 deletions
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 */