提交 20bb8277 编写于 作者: G Gerd Hoffmann 提交者: Anthony Liguori

qdev: convert tcx to reset + vmsd

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 391a079e
......@@ -560,8 +560,6 @@ static int tcx_init1(SysBusDevice *dev)
tcx_screen_dump, NULL, s);
}
vmstate_register(-1, &vmstate_tcx, s);
qemu_register_reset(tcx_reset, s);
tcx_reset(s);
qemu_console_resize(s->ds, s->width, s->height);
return 0;
......@@ -634,6 +632,8 @@ static SysBusDeviceInfo tcx_info = {
.init = tcx_init1,
.qdev.name = "SUNW,tcx",
.qdev.size = sizeof(TCXState),
.qdev.reset = tcx_reset,
.qdev.vmsd = &vmstate_tcx,
.qdev.props = (Property[]) {
DEFINE_PROP_TADDR("addr", TCXState, addr, -1),
DEFINE_PROP_HEX32("vram_size", TCXState, vram_size, -1),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册