aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/eepro100.c11
-rw-r--r--pc-bios/pxe-i82559er.bin (renamed from pc-bios/pxe-eepro100.bin)bin56832 -> 56832 bytes
2 files changed, 11 insertions, 0 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 25aabcf209..c5ec0be0d5 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -40,6 +40,7 @@
#include <stddef.h> /* offsetof */
#include <stdbool.h>
#include "hw.h"
+#include "loader.h" /* rom_add_option */
#include "pci.h"
#include "net.h"
#include "eeprom93xx.h"
@@ -1843,6 +1844,16 @@ static int nic_init(PCIDevice *pci_dev, uint32_t device)
memcpy(s->vmstate, &vmstate_eepro100, sizeof(vmstate_eepro100));
s->vmstate->name = s->vc->model;
vmstate_register(-1, s->vmstate, s);
+
+ if (!pci_dev->qdev.hotplugged) {
+ static int loaded = 0;
+ if (!loaded) {
+ char fname[32];
+ snprintf(fname, sizeof(fname), "pxe-%s.bin", s->vc->model);
+ rom_add_option(fname);
+ loaded = 1;
+ }
+ }
return 0;
}
diff --git a/pc-bios/pxe-eepro100.bin b/pc-bios/pxe-i82559er.bin
index 2ca59ec369..2ca59ec369 100644
--- a/pc-bios/pxe-eepro100.bin
+++ b/pc-bios/pxe-i82559er.bin
Binary files differ