Received: from eggs.gnu.org ([208.118.235.92]:34608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtUMb-00016i-HI for qemu-devel@nongnu.org; Thu, 10 Jan 2013 21:29:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtUMZ-0004GN-Tk for qemu-devel@nongnu.org; Thu, 10 Jan 2013 21:28:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtUMZ-0004GJ-Me for qemu-devel@nongnu.org; Thu, 10 Jan 2013 21:28:55 -0500 Date: Fri, 11 Jan 2013 00:30:38 -0200 From: Eduardo Habkost Message-ID: <20130111023037.GM10683@otherpad.lan.raisama.net> References: <1357870231-26762-1-git-send-email-imammedo@redhat.com> <1357870231-26762-6-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1357870231-26762-6-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [PATCH 05/17] target-i386: replace uint32_t vendor fields by vendor string in x86_def_t List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, afaerber@suse.de On Fri, Jan 11, 2013 at 03:10:19AM +0100, Igor Mammedov wrote: > Vendor property setter takes string as vendor value but cpudefs > use uint32_t vendor[123] fields to define vendor value. It makes it > difficult to unify and use property setter for values from cpudefs. > > Simplify code by using vendor property setter, vendor[123] fields > are converted into vendor[13] array to keep its value. And vendor > property setter is used to access/set value on CPU. > > Signed-off-by: Igor Mammedov > --- > v3: > - replace x86cpu_vendor_words2str() with x86_cpu_vendor_words2str() > due to renaming of the last in previous patch > - rebased with "target-i386: move out CPU features initialization > in separate func" patch dropped > v2: > - restore deleted host_cpuid() call in kvm_cpu_fill_host() > Spotted-By: Eduardo Habkost > --- > target-i386/cpu.c | 126 +++++++++++++---------------------------------------- > target-i386/cpu.h | 6 +- > 2 files changed, 33 insertions(+), 99 deletions(-) > Reviewed-by: Eduardo Habkost -- Eduardo