Revision 3d865059 hw/lance.c
b/hw/lance.c | ||
---|---|---|
96 | 96 |
{ |
97 | 97 |
PCNetState *d = vc->opaque; |
98 | 98 |
|
99 |
vmstate_unregister(&vmstate_pcnet, d); |
|
99 | 100 |
pcnet_common_cleanup(d); |
100 | 101 |
} |
101 | 102 |
|
... | ... | |
116 | 117 |
s->phys_mem_read = ledma_memory_read; |
117 | 118 |
s->phys_mem_write = ledma_memory_write; |
118 | 119 |
|
119 |
register_savevm("pcnet", -1, 3, pcnet_save, pcnet_load, s);
|
|
120 |
vmstate_register(-1, &vmstate_pcnet, d);
|
|
120 | 121 |
return pcnet_common_init(&dev->qdev, s, lance_cleanup); |
121 | 122 |
} |
122 | 123 |
|
Also available in: Unified diff