Revision 4e9df06a
b/hw/eepro100.c | ||
---|---|---|
40 | 40 |
#include <stddef.h> /* offsetof */ |
41 | 41 |
#include <stdbool.h> |
42 | 42 |
#include "hw.h" |
43 |
#include "loader.h" /* rom_add_option */ |
|
43 | 44 |
#include "pci.h" |
44 | 45 |
#include "net.h" |
45 | 46 |
#include "eeprom93xx.h" |
... | ... | |
1843 | 1844 |
memcpy(s->vmstate, &vmstate_eepro100, sizeof(vmstate_eepro100)); |
1844 | 1845 |
s->vmstate->name = s->vc->model; |
1845 | 1846 |
vmstate_register(-1, s->vmstate, s); |
1847 |
|
|
1848 |
if (!pci_dev->qdev.hotplugged) { |
|
1849 |
static int loaded = 0; |
|
1850 |
if (!loaded) { |
|
1851 |
char fname[32]; |
|
1852 |
snprintf(fname, sizeof(fname), "pxe-%s.bin", s->vc->model); |
|
1853 |
rom_add_option(fname); |
|
1854 |
loaded = 1; |
|
1855 |
} |
|
1856 |
} |
|
1846 | 1857 |
return 0; |
1847 | 1858 |
} |
1848 | 1859 |
|
Also available in: Unified diff