aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-10-31 13:42:54 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-10-31 13:43:54 +0100
commit1f38e9aef71ae9e170a69e1f15b7c455a9627e99 (patch)
treef4ad043f77b2e4796536172de8ca96a7e37073d5 /executor/common_linux.h
parent897810904389a6c30278f70a21669dbf7843bd70 (diff)
executor: fix inclusion of kvm arch-specific code
We use GOOS now to figure out target arch (which can be different from host arch).
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 2e6b33bcb..00c78c6af 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -868,9 +868,9 @@ error:
#include <sys/ioctl.h>
#include <sys/stat.h>
-#if defined(__x86_64__)
+#if GOARCH_amd64
#include "common_kvm_amd64.h"
-#elif defined(__aarch64__)
+#elif GOARCH_arm64
#include "common_kvm_arm64.h"
#else
static long syz_kvm_setup_cpu(long a0, long a1, long a2, long a3, long a4, long a5, long a6, long a7)