From patchwork Tue Dec 18 16:29:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 207151 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 958572C0092 for ; Wed, 19 Dec 2012 03:28:04 +1100 (EST) Received: from localhost ([::1]:37496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl01S-0005Cm-MK for incoming@patchwork.ozlabs.org; Tue, 18 Dec 2012 11:28:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl01K-0005CU-U8 for qemu-devel@nongnu.org; Tue, 18 Dec 2012 11:27:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tl01J-0006F8-QT for qemu-devel@nongnu.org; Tue, 18 Dec 2012 11:27:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tl01J-0006Et-Ij for qemu-devel@nongnu.org; Tue, 18 Dec 2012 11:27:53 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qBIGRqK5032763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 18 Dec 2012 11:27:52 -0500 Received: from blackpad.lan.raisama.net (vpn1-6-125.gru2.redhat.com [10.97.6.125]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qBIGRp6O003827; Tue, 18 Dec 2012 11:27:52 -0500 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id 35B3B200A01; Tue, 18 Dec 2012 14:29:24 -0200 (BRST) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Tue, 18 Dec 2012 14:29:21 -0200 Message-Id: <1355848163-29846-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1355848163-29846-1-git-send-email-ehabkost@redhat.com> References: <1355848163-29846-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH 1/3] target-i386/cpu.c: coding style fix X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 2d4fc42..fe27def 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1789,10 +1789,11 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count, /* XXX: The physical address space is limited to 42 bits in exec.c. */ *eax = 0x00003028; /* 48 bits virtual, 40 bits physical */ } else { - if (env->cpuid_features & CPUID_PSE36) + if (env->cpuid_features & CPUID_PSE36) { *eax = 0x00000024; /* 36 bits physical */ - else + } else { *eax = 0x00000020; /* 32 bits physical */ + } } *ebx = 0; *ecx = 0;