From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tkd91-0005cs-Mm for qemu-devel@nongnu.org; Mon, 17 Dec 2012 11:02:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tkd8v-0001sU-Q6 for qemu-devel@nongnu.org; Mon, 17 Dec 2012 11:02:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tkd8v-0001sA-Fx for qemu-devel@nongnu.org; Mon, 17 Dec 2012 11:02:13 -0500 From: Igor Mammedov Date: Mon, 17 Dec 2012 17:01:25 +0100 Message-Id: <1355760092-18755-14-git-send-email-imammedo@redhat.com> In-Reply-To: <1355760092-18755-1-git-send-email-imammedo@redhat.com> References: <1355760092-18755-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 13/20] target-i386: convert [cpuid_]vendor_override to bool List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Don@CloudSwitch.com, ehabkost@redhat.com, afaerber@suse.de Signed-off-by: Igor Mammedov --- target-i386/cpu.c | 6 +++--- target-i386/cpu.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index ed67de7..2b7272a 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -284,7 +284,7 @@ typedef struct x86_def_t { uint32_t kvm_features, svm_features; uint32_t xlevel; char model_id[48]; - int vendor_override; + bool vendor_override; /* Store the results of Centaur's CPUID instructions */ uint32_t ext4_features; uint32_t xlevel2; @@ -859,7 +859,7 @@ static void kvm_cpu_fill_host(x86_def_t *x86_cpu_def) kvm_arch_get_supported_cpuid(s, 0x80000001, 0, R_ECX); cpu_x86_fill_model_id(x86_cpu_def->model_id); - x86_cpu_def->vendor_override = 0; + x86_cpu_def->vendor_override = false; /* Call Centaur's CPUID instruction. */ if (!strcmp(x86_cpu_def->vendor, CPUID_VENDOR_VIA)) { @@ -1329,7 +1329,7 @@ static int cpu_x86_parse_featurestr(x86_def_t *x86_cpu_def, char *features, x86_cpu_def->xlevel = numvalue; } else if (!strcmp(featurestr, "vendor")) { pstrcpy(x86_cpu_def->vendor, sizeof(x86_cpu_def->vendor), val); - x86_cpu_def->vendor_override = 1; + x86_cpu_def->vendor_override = true; } else if (!strcmp(featurestr, "model_id")) { pstrcpy(x86_cpu_def->model_id, sizeof(x86_cpu_def->model_id), val); diff --git a/target-i386/cpu.h b/target-i386/cpu.h index fbbe730..0247253 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -812,7 +812,7 @@ typedef struct CPUX86State { uint32_t cpuid_ext2_features; uint32_t cpuid_ext3_features; uint32_t cpuid_apic_id; - int cpuid_vendor_override; + bool cpuid_vendor_override; /* Store the results of Centaur's CPUID instructions */ uint32_t cpuid_xlevel2; uint32_t cpuid_ext4_features; -- 1.7.1