Skip to content

Commit 5fd0711

Browse files
Reinoud Zandijkbonzini
authored andcommitted
Only check CONFIG_NVMM when NEED_CPU_H is defined
Userland targers will otherwise use a poisoned CONFIG_NVMM Signed-off-by: Reinoud Zandijk <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 37daf1b commit 5fd0711

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/sysemu/nvmm.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
#ifndef QEMU_NVMM_H
1111
#define QEMU_NVMM_H
1212

13-
#include "config-host.h"
14-
#include "qemu-common.h"
13+
#ifdef NEED_CPU_H
1514

1615
#ifdef CONFIG_NVMM
1716

@@ -23,4 +22,6 @@ int nvmm_enabled(void);
2322

2423
#endif /* CONFIG_NVMM */
2524

26-
#endif /* CONFIG_NVMM */
25+
#endif /* NEED_CPU_H */
26+
27+
#endif /* QEMU_NVMM_H */

0 commit comments

Comments
 (0)