diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-03 08:06:27 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-06-12 21:42:15 -0400 |
commit | 1f20982eb46c72c5b0b1d672b2fcf25b6bd5e42b (patch) | |
tree | f1412a1b46e8a32edd51b7d36f307891a85cb33d | |
parent | 2ca73ed004ed817ea887e28bf9ed97e58a652519 (diff) | |
download | seabios-1f20982eb46c72c5b0b1d672b2fcf25b6bd5e42b.tar.gz |
coreboot: add qemu detection
-rw-r--r-- | src/coreboot.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/coreboot.c b/src/coreboot.c index 120bc2e..2c8bd2d 100644 --- a/src/coreboot.c +++ b/src/coreboot.c @@ -14,6 +14,7 @@ #include "config.h" // CONFIG_* #include "acpi.h" // find_acpi_features #include "pci.h" // pci_probe_devices +#include "paravirt.h" // PlatformRunningOn /**************************************************************** @@ -165,6 +166,10 @@ coreboot_preinit(void) if (cbmb) { CBvendor = &cbmb->strings[cbmb->vendor_idx]; CBpart = &cbmb->strings[cbmb->part_idx]; + if (strcmp(CBvendor, "Emulation") == 0 && + strcmp(CBpart, "QEMU x86") == 0) { + PlatformRunningOn |= PF_QEMU; + } dprintf(1, "Found mainboard %s %s\n", CBvendor, CBpart); } |