From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di4NN-0007VV-Fj for qemu-devel@nongnu.org; Wed, 16 Aug 2017 15:53:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di4NJ-000687-K1 for qemu-devel@nongnu.org; Wed, 16 Aug 2017 15:53:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46212) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1di4NJ-00067v-DT for qemu-devel@nongnu.org; Wed, 16 Aug 2017 15:53:09 -0400 Date: Wed, 16 Aug 2017 16:53:05 -0300 From: Eduardo Habkost Message-ID: <20170816195305.GH3108@localhost.localdomain> References: <1500040339-119465-1-git-send-email-imammedo@redhat.com> <1500040339-119465-18-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1500040339-119465-18-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [PATCH 17/28] tilegx: replace cpu_tilegx_init() with cpu_generic_init() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, Peter Maydell , Laurent Vivier , David Gibson , Andreas =?iso-8859-1?Q?F=E4rber?= , Richard Henderson On Fri, Jul 14, 2017 at 03:52:08PM +0200, Igor Mammedov wrote: > cpu_tilegx_init() always falls back to TYPE_TILEGX_CPU object > regardless of cpu_model. Put fallback logic into > tilegx_cpu_class_by_name() which would translate any cpu_model > into TYPE_TILEGX_CPU class and replace cpu_tilegx_init() > with cpu_generic_init(). > > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost -- Eduardo