about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2020-03-08 11:50:44 +0100
committerGitHub <noreply@github.com>2020-03-08 11:50:44 +0100
commit98ffef26dcc59c48e1afa00ddb8c39206602ccfe (patch)
tree0298fd159f237bf1ffdfda24d7c73b78bf70058d
parented5d65b54f07570c82f6704fdca403b776ff7be2 (diff)
parent81179b48290be597ac04cdcd2105d1044517ee81 (diff)
downloadafl++-98ffef26dcc59c48e1afa00ddb8c39206602ccfe.tar.gz
Merge pull request #239 from 0x1eadbead/fix-qemu-32-on-64
fix qemu persistent mode for 32-bit target on 64-bit host
-rw-r--r--qemu_mode/patches/afl-qemu-cpu-translate-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-translate-inl.h b/qemu_mode/patches/afl-qemu-cpu-translate-inl.h
index 04cf2e66..72353967 100644
--- a/qemu_mode/patches/afl-qemu-cpu-translate-inl.h
+++ b/qemu_mode/patches/afl-qemu-cpu-translate-inl.h
@@ -35,7 +35,7 @@
 #include "tcg.h"
 #include "tcg-op.h"
 
-#if TCG_TARGET_REG_BITS == 64
+#if TCG_TARGET_LONG_BITS == 64
 #define _DEFAULT_MO MO_64
 #else
 #define _DEFAULT_MO MO_32