diff options
author | Reinoud Zandijk <reinoud@NetBSD.org> | 2021-07-18 15:46:49 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-09-13 13:56:26 +0200 |
commit | 5fd0711b859c101876585f736ddb48721c106685 (patch) | |
tree | 82cadeb568fd176c002fc6885d8921b2f56801a8 /include | |
parent | 37daf1ba85ccc0d4e53ed355eca316e7e1cae6d3 (diff) | |
download | qemu-5fd0711b859c101876585f736ddb48721c106685.zip qemu-5fd0711b859c101876585f736ddb48721c106685.tar.gz qemu-5fd0711b859c101876585f736ddb48721c106685.tar.bz2 |
Only check CONFIG_NVMM when NEED_CPU_H is defined
Userland targers will otherwise use a poisoned CONFIG_NVMM
Signed-off-by: Reinoud Zandijk <Reinoud@NetBSD.org>
Message-Id: <20210718134650.1191-2-reinoud@NetBSD.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/nvmm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/sysemu/nvmm.h b/include/sysemu/nvmm.h index 6d21659..833670f 100644 --- a/include/sysemu/nvmm.h +++ b/include/sysemu/nvmm.h @@ -10,8 +10,7 @@ #ifndef QEMU_NVMM_H #define QEMU_NVMM_H -#include "config-host.h" -#include "qemu-common.h" +#ifdef NEED_CPU_H #ifdef CONFIG_NVMM @@ -23,4 +22,6 @@ int nvmm_enabled(void); #endif /* CONFIG_NVMM */ -#endif /* CONFIG_NVMM */ +#endif /* NEED_CPU_H */ + +#endif /* QEMU_NVMM_H */ |