Received: from eggs.gnu.org ([208.118.235.92]:43997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tge0x-0001LW-8l for qemu-devel@nongnu.org; Thu, 06 Dec 2012 11:09:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tge0s-00057d-Jz for qemu-devel@nongnu.org; Thu, 06 Dec 2012 11:09:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tge0s-00056M-Cl for qemu-devel@nongnu.org; Thu, 06 Dec 2012 11:09:26 -0500 Date: Thu, 6 Dec 2012 14:10:58 -0200 From: Eduardo Habkost Message-ID: <20121206161058.GU4255@otherpad.lan.raisama.net> References: <1351652644-18687-1-git-send-email-afaerber@suse.de> <1351652644-18687-4-git-send-email-afaerber@suse.de> <20121206153725.GH4986@otherpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 3/7] target-alpha: Add support for -cpu ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: rth@twiddle.net, Andreas =?iso-8859-1?Q?F=E4rber?= , qemu-devel@nongnu.org On Thu, Dec 06, 2012 at 03:59:46PM +0000, Peter Maydell wrote: > On 6 December 2012 15:37, Eduardo Habkost wrote: > > target-arm has very similar code. Isn't it better to first write a > > common reusable function to list CPU models using the list of > > subclasses, instead of adding very similar functions to all > > architectures? > > What would be particularly useful to have as a common > utility routine is support for x86-style +feature,-feature > syntax. At the moment we don't implement that on most > other targets but it would be good to have that on ARM > at some point. Once we finish the work on x86, I plan to make the code reusable by other architectures. That would include the +feature,-feature parsing and the CPU model -> CPU class lookup (this one may be more complicated to make reusable, but I think it's doable). -- Eduardo