From patchwork Sat Feb 16 15:44:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 220968 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 46A632C008D for ; Sun, 17 Feb 2013 02:49:15 +1100 (EST) Received: from localhost ([::1]:48463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6k0n-0003pW-9g for incoming@patchwork.ozlabs.org; Sat, 16 Feb 2013 10:49:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6k0X-0003m2-VT for qemu-devel@nongnu.org; Sat, 16 Feb 2013 10:48:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6k0T-0002EV-SG for qemu-devel@nongnu.org; Sat, 16 Feb 2013 10:48:57 -0500 Received: from cantor2.suse.de ([195.135.220.15]:40332 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6k0T-0002ED-M4 for qemu-devel@nongnu.org; Sat, 16 Feb 2013 10:48:53 -0500 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C1E18A39D2 for ; Sat, 16 Feb 2013 16:48:52 +0100 (CET) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Sat, 16 Feb 2013 16:44:56 +0100 Message-Id: <1361029542-8412-2-git-send-email-afaerber@suse.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1361029542-8412-1-git-send-email-afaerber@suse.de> References: <1361029542-8412-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 195.135.220.15 Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH 01/47] cpu: Prepare QOM realizefn X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Overwrite the default implementation with a no-op, no longer attempting to call DeviceClass::init. Signed-off-by: Andreas Färber --- qom/cpu.c | 5 +++++ 1 Datei geändert, 5 Zeilen hinzugefügt(+) diff --git a/qom/cpu.c b/qom/cpu.c index 8fb538b..870e9ba 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -46,6 +46,10 @@ static ObjectClass *cpu_common_class_by_name(const char *cpu_model) return NULL; } +static void cpu_common_realizefn(DeviceState *dev, Error **errp) +{ +} + static void cpu_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); @@ -53,6 +57,7 @@ static void cpu_class_init(ObjectClass *klass, void *data) k->class_by_name = cpu_common_class_by_name; k->reset = cpu_common_reset; + dc->realize = cpu_common_realizefn; dc->no_user = 1; }