qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] mips_malta: use compat props to avoid loading efi-p


From: Leon Alrae
Subject: [Qemu-devel] [PATCH] mips_malta: use compat props to avoid loading efi-pcnet.rom
Date: Fri, 20 Mar 2015 14:11:02 +0000

Currently qemu-system-mips aborts if it fails to find efi-pcnet.rom file which
does not make sense. NIC on Malta board should not require x86 firmware.

Reported-by: Maciej W. Rozycki <address@hidden>
Suggested-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Leon Alrae <address@hidden>
---
Hi,

This fixes a problem reported some time ago:
http://lists.gnu.org/archive/html/qemu-devel/2014-12/msg01870.html

Regards,
Leon
---
 hw/mips/mips_malta.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c
index 533b2e6..b857941 100644
--- a/hw/mips/mips_malta.c
+++ b/hw/mips/mips_malta.c
@@ -1212,6 +1212,14 @@ static QEMUMachine mips_malta_machine = {
     .init = mips_malta_init,
     .max_cpus = 16,
     .is_default = 1,
+    .compat_props = (GlobalProperty[]) {
+        {
+            .driver   = TYPE_PCI_DEVICE,
+            .property = "romfile",
+            .value    = "",
+        },
+        { /* end of list */ }
+    },
 };
 
 static void mips_malta_register_types(void)
-- 
2.1.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]