From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiOEt-00076A-0D for qemu-devel@nongnu.org; Tue, 01 Sep 2009 03:57:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiOEo-00073n-1Y for qemu-devel@nongnu.org; Tue, 01 Sep 2009 03:57:14 -0400 Received: from [199.232.76.173] (port=47428 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiOEn-00073g-SY for qemu-devel@nongnu.org; Tue, 01 Sep 2009 03:57:09 -0400 Received: from mx20.gnu.org ([199.232.41.8]:3539) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MiOEn-0008Lp-2w for qemu-devel@nongnu.org; Tue, 01 Sep 2009 03:57:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiOEl-0001P3-Vx for qemu-devel@nongnu.org; Tue, 01 Sep 2009 03:57:08 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n817uKse000747 for ; Tue, 1 Sep 2009 03:56:20 -0400 From: Gerd Hoffmann Date: Tue, 1 Sep 2009 09:56:15 +0200 Message-Id: <1251791775-5358-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1251791775-5358-1-git-send-email-kraxel@redhat.com> References: <1251791775-5358-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 4/4] qdev: convert tcx to reset + vmsd List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- hw/tcx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/tcx.c b/hw/tcx.c index d1e5851..9996219 100644 --- a/hw/tcx.c +++ b/hw/tcx.c @@ -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), -- 1.6.2.5