From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTQNE-0007rm-LF for qemu-devel@nongnu.org; Wed, 31 Oct 2012 00:57:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTQND-0000r6-Rb for qemu-devel@nongnu.org; Wed, 31 Oct 2012 00:57:52 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:50300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTQND-0000qq-Kh for qemu-devel@nongnu.org; Wed, 31 Oct 2012 00:57:51 -0400 Received: by mail-pb0-f45.google.com with SMTP id rp2so673828pbb.4 for ; Tue, 30 Oct 2012 21:57:50 -0700 (PDT) Sender: Richard Henderson Message-ID: <5090AFC7.7010107@twiddle.net> Date: Wed, 31 Oct 2012 15:57:43 +1100 From: Richard Henderson MIME-Version: 1.0 References: <1351652644-18687-1-git-send-email-afaerber@suse.de> <1351652644-18687-3-git-send-email-afaerber@suse.de> In-Reply-To: <1351652644-18687-3-git-send-email-afaerber@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 2/7] target-alpha: Turn CPU definitions into subclasses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: qemu-devel@nongnu.org On 2012-10-31 14:03, Andreas Färber wrote: > +static const AlphaCPUInfo alpha_cpus[] = { > + { .name = "ev4", .initfn = ev4_cpu_initfn }, > + { .name = "ev5", .initfn = ev5_cpu_initfn }, > + { .name = "ev56", .initfn = ev56_cpu_initfn }, > + { .name = "pca56", .initfn = pca56_cpu_initfn }, > + { .name = "ev6", .initfn = ev6_cpu_initfn }, > + { .name = "ev67", .initfn = ev67_cpu_initfn }, > + { .name = "ev68", .initfn = ev68_cpu_initfn }, > + { .name = "21064", .initfn = alpha_21064_cpu_initfn }, > + { .name = "21164", .initfn = alpha_21164_cpu_initfn }, > + { .name = "21164a", .initfn = alpha_21164a_cpu_initfn }, > + { .name = "21164pc", .initfn = alpha_21164pc_cpu_initfn }, > + { .name = "21264", .initfn = alpha_21264_cpu_initfn }, > + { .name = "21264a", .initfn = alpha_21264a_cpu_initfn }, > +}; The "2*" names are aliases of the "ev*" names. There's no need for so much duplication. And for that matter, "ev68" is no different from "ev67" at the level for which we emulate. In hw, it was more cache and a faster multiply implementation. r~