Revision 8c52c8f3 hw/rtl8139.c

b/hw/rtl8139.c
3353 3353
    qemu_mod_timer(s->timer,
3354 3354
        rtl8139_get_next_tctr_time(s,qemu_get_clock(vm_clock)));
3355 3355
#endif /* RTL8139_ONBOARD_TIMER */
3356

  
3357
    if (!dev->qdev.hotplugged) {
3358
        static int loaded = 0;
3359
        if (!loaded) {
3360
            pci_add_option_rom(&s->dev, "pxe-rtl8139.bin");
3361
            loaded = 1;
3362
        }
3363
    }
3364 3356
    return 0;
3365 3357
}
3366 3358

  
......
3371 3363
    .qdev.vmsd  = &vmstate_rtl8139,
3372 3364
    .init       = pci_rtl8139_init,
3373 3365
    .exit       = pci_rtl8139_uninit,
3366
    .romfile    = "pxe-rtl8139.bin",
3374 3367
    .qdev.props = (Property[]) {
3375 3368
        DEFINE_NIC_PROPERTIES(RTL8139State, conf),
3376 3369
        DEFINE_PROP_END_OF_LIST(),

Also available in: Unified diff