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>
This commit is contained in:
parent
37daf1ba85
commit
5fd0711b85
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user