📄 ioemu-save-restore-rtl8139
字号:
Index: ioemu/hw/rtl8139.c===================================================================--- ioemu.orig/hw/rtl8139.c 2007-05-09 14:08:41.000000000 +0100+++ ioemu/hw/rtl8139.c 2007-05-09 14:09:34.000000000 +0100@@ -3414,6 +3414,7 @@ PCIRTL8139State *d; RTL8139State *s; uint8_t *pci_conf;+ int instance; d = (PCIRTL8139State *)pci_register_device(bus, "RTL8139", sizeof(PCIRTL8139State),@@ -3464,8 +3465,8 @@ s->cplus_txbuffer_len = 0; s->cplus_txbuffer_offset = 0; - /* XXX: instance number ? */- register_savevm("rtl8139", 0, 3, rtl8139_save, rtl8139_load, s);+ instance = pci_bus_num(bus) << 8 | s->pci_dev->devfn;+ register_savevm("rtl8139", instance, 3, rtl8139_save, rtl8139_load, s); #if RTL8139_ONBOARD_TIMER s->timer = qemu_new_timer(vm_clock, rtl8139_timer, s);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -