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>2019-10-25 20:04:16 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-10-25 20:04:16 +0200
commit4ec4e5b394dfa4e40a26574e3053a9bd7eaa8d37 (patch)
tree4ae76859d96fb31b3635a12f8632771cdaa9664f /qemu_mode/patches/afl-qemu-common.h
parente7871b2c7675e0f6df4fbe1a8f53a23ed5d2024f (diff)
downloadafl++-4ec4e5b394dfa4e40a26574e3053a9bd7eaa8d37.tar.gz
floating point compcov
Diffstat (limited to 'qemu_mode/patches/afl-qemu-common.h')
-rw-r--r--qemu_mode/patches/afl-qemu-common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/qemu_mode/patches/afl-qemu-common.h b/qemu_mode/patches/afl-qemu-common.h
index 409a7eab..d4024353 100644
--- a/qemu_mode/patches/afl-qemu-common.h
+++ b/qemu_mode/patches/afl-qemu-common.h
@@ -31,6 +31,9 @@
 
  */
 
+#ifndef __AFL_QEMU_COMMON
+#define __AFL_QEMU_COMMON
+
 #include "../../config.h"
 
 #ifndef CPU_NB_REGS
@@ -81,6 +84,12 @@ void tcg_gen_afl_compcov_log_call(void *func, target_ulong cur_loc,
 
 void tcg_gen_afl_maybe_log_call(target_ulong cur_loc);
 
+void afl_float_compcov_log_32(target_ulong cur_loc, float32 arg1, float32 arg2,
+                              void *status);
+void afl_float_compcov_log_64(target_ulong cur_loc, float64 arg1, float64 arg2,
+                              void *status);
+void afl_float_compcov_log_80(target_ulong cur_loc, floatx80 arg1,
+                              floatx80 arg2);
 
 /* Check if an address is valid in the current mapping */
 
@@ -99,3 +108,6 @@ static inline int is_valid_addr(target_ulong addr) {
   return 1;
 
 }
+
+#endif
+