Received: from eggs.gnu.org ([208.118.235.92]:34881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToIOE-0006uB-8C for qemu-devel@nongnu.org; Thu, 27 Dec 2012 13:41:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ToIOD-0000fZ-1Z for qemu-devel@nongnu.org; Thu, 27 Dec 2012 13:41:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToIOC-0000fK-Pi for qemu-devel@nongnu.org; Thu, 27 Dec 2012 13:41:08 -0500 Date: Thu, 27 Dec 2012 16:42:45 -0200 From: Eduardo Habkost Message-ID: <20121227184245.GH18372@otherpad.lan.raisama.net> References: <1356620376-23501-1-git-send-email-imammedo@redhat.com> <1356620376-23501-5-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1356620376-23501-5-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [PATCH 04/20] target-i386: setting default 'vendor' is obsolete, remove it List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, afaerber@suse.de On Thu, Dec 27, 2012 at 03:59:20PM +0100, Igor Mammedov wrote: > since cpu_def config is not supported anymore and all remaining sources now > always set x86_def_t.vendor[123] fields remove setting default vendor to > simplify future re-factoring. > > Signed-off-by: Igor Mammedov > Reviewed-by: Eduardo Habkost To confirm that this specific submission is OK to me: Reviewed-by: Eduardo Habkost > --- > target-i386/cpu.c | 13 ++++--------- > 1 files changed, 4 insertions(+), 9 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 1497980..99fd3f3 100644 > --- a/target-i386/cpu.c > +++ b/target-i386/cpu.c > @@ -1539,15 +1539,10 @@ int cpu_x86_register(X86CPU *cpu, const char *cpu_model) > if (cpu_x86_parse_featurestr(def, features) < 0) { > goto error; > } > - if (def->vendor1) { > - env->cpuid_vendor1 = def->vendor1; > - env->cpuid_vendor2 = def->vendor2; > - env->cpuid_vendor3 = def->vendor3; > - } else { > - env->cpuid_vendor1 = CPUID_VENDOR_INTEL_1; > - env->cpuid_vendor2 = CPUID_VENDOR_INTEL_2; > - env->cpuid_vendor3 = CPUID_VENDOR_INTEL_3; > - } > + assert(def->vendor1); > + env->cpuid_vendor1 = def->vendor1; > + env->cpuid_vendor2 = def->vendor2; > + env->cpuid_vendor3 = def->vendor3; > env->cpuid_vendor_override = def->vendor_override; > object_property_set_int(OBJECT(cpu), def->level, "level", &error); > object_property_set_int(OBJECT(cpu), def->family, "family", &error); > -- > 1.7.1 > -- Eduardo