summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2019-08-19 09:34:13 +0000
committerjsg <jsg@openbsd.org>2019-08-19 09:34:13 +0000
commit16fe02eac21d0966917a19564e04e3ad76ffa049 (patch)
tree414b5c28a8c40c74d8626a824b8b76b0e2801b62 /sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h
parentmatch on r40 ahci (diff)
downloadwireguard-openbsd-16fe02eac21d0966917a19564e04e3ad76ffa049.tar.xz
wireguard-openbsd-16fe02eac21d0966917a19564e04e3ad76ffa049.zip
define CONFIG_X86* in autoconf.h as needed and reduce diff to linux
ok kettenis@
Diffstat (limited to 'sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h b/sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h
index a4a52484370..efb824f393f 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.h
@@ -270,7 +270,7 @@ struct amdgpu_virt {
static inline bool is_virtual_machine(void)
{
-#if defined(__amd64__) || defined(__i386__)
+#ifdef CONFIG_X86
return boot_cpu_has(X86_FEATURE_HYPERVISOR);
#else
return false;