summaryrefslogtreecommitdiff
path: root/src/acpi/nvs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/acpi/nvs.c')
-rw-r--r--src/acpi/nvs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/acpi/nvs.c b/src/acpi/nvs.c
index 063819158c..a7915f2164 100644
--- a/src/acpi/nvs.c
+++ b/src/acpi/nvs.c
@@ -15,9 +15,13 @@ uint32_t *gnvs_cbmc_ptr(struct global_nvs *gnvs)
}
/* Some <soc/nvs.h> have no chromeos entry. */
-#if CONFIG(MAINBOARD_HAS_CHROMEOS)
void *gnvs_chromeos_ptr(struct global_nvs *gnvs)
{
+#if CONFIG(BOARD_EMULATION_QEMU_X86_Q35)
+ return NULL;
+#elif CONFIG(MAINBOARD_HAS_CHROMEOS)
return &gnvs->chromeos;
-}
+#else
+ return NULL;
#endif
+}