From patchwork Sat Jan 26 16:55:13 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: 215918 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 6C2EA2C008E for ; Sun, 27 Jan 2013 03:55:37 +1100 (EST) Received: from localhost ([::1]:34568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tz92U-0001dO-SF for incoming@patchwork.ozlabs.org; Sat, 26 Jan 2013 11:55:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tz92N-0001dD-5P for qemu-devel@nongnu.org; Sat, 26 Jan 2013 11:55:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tz92K-0004AQ-QP for qemu-devel@nongnu.org; Sat, 26 Jan 2013 11:55:27 -0500 Received: from cantor2.suse.de ([195.135.220.15]:51738 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tz92K-00049e-I8; Sat, 26 Jan 2013 11:55:24 -0500 Received: from relay2.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 113D2A5207; Sat, 26 Jan 2013 17:55:23 +0100 (CET) Message-ID: <51040A71.404@suse.de> Date: Sat, 26 Jan 2013 17:55:13 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Organization: SUSE LINUX Products GmbH User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 MIME-Version: 1.0 To: qemu-devel@nongnu.org References: <1358942867-8612-1-git-send-email-afaerber@suse.de> <1358942867-8612-4-git-send-email-afaerber@suse.de> In-Reply-To: <1358942867-8612-4-git-send-email-afaerber@suse.de> X-Enigmail-Version: 1.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 195.135.220.15 Cc: PowerPC , Alexander Graf , Richard Henderson Subject: Re: [Qemu-devel] [PATCH qom-cpu for-1.4 03/14] cpu: Add model resolution support to CPUClass 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 Am 23.01.2013 13:07, schrieb Andreas Färber: > Introduce CPUClass::class_by_name and add a default implementation. [...] > diff --git a/include/qom/cpu.h b/include/qom/cpu.h > index 773caf9..cd0378e 100644 > --- a/include/qom/cpu.h > +++ b/include/qom/cpu.h > @@ -49,6 +49,8 @@ typedef struct CPUClass { > DeviceClass parent_class; > /*< public >*/ > > + ObjectClass *(*class_by_name)(const char *cpu_model); > + > void (*reset)(CPUState *cpu); > } CPUClass; > Documentation missing: Andreas diff --git a/include/qom/cpu.h b/include/qom/cpu.h index cd0378e..8097692 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -40,6 +40,8 @@ typedef struct CPUState CPUState; /** * CPUClass: + * @class_by_name: Callback to map -cpu command line model name to an + * instantiatable CPU type. * @reset: Callback to reset the #CPUState to its initial state. * * Represents a CPU family or model.