From patchwork Thu Dec 24 14:14:33 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 41778 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C0283B7BF2 for ; Fri, 25 Dec 2009 01:15:20 +1100 (EST) Received: from localhost ([127.0.0.1]:47388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNoTE-0004UM-Q6 for incoming@patchwork.ozlabs.org; Thu, 24 Dec 2009 09:15:16 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNoSg-0004QF-2H for qemu-devel@nongnu.org; Thu, 24 Dec 2009 09:14:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNoSb-0004Kp-88 for qemu-devel@nongnu.org; Thu, 24 Dec 2009 09:14:41 -0500 Received: from [199.232.76.173] (port=38934 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNoSb-0004KV-2M for qemu-devel@nongnu.org; Thu, 24 Dec 2009 09:14:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2689) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NNoSa-00084M-Lt for qemu-devel@nongnu.org; Thu, 24 Dec 2009 09:14:36 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBOEEYEs007672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 24 Dec 2009 09:14:35 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBOEEXXb023016 for ; Thu, 24 Dec 2009 09:14:34 -0500 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 8E8AD1336CD; Thu, 24 Dec 2009 16:14:33 +0200 (IST) Date: Thu, 24 Dec 2009 16:14:33 +0200 From: Gleb Natapov To: qemu-devel@nongnu.org Message-ID: <20091224141433.GB5691@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH] Intel CPUs starting from pentium have apic X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Intel CPUs starting from pentium have apic. Lets advertise it. Signed-off-by: Gleb Natapov --- Gleb. diff --git a/target-i386/helper.c b/target-i386/helper.c index 730e396..c39a993 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -106,7 +106,7 @@ typedef struct x86_def_t { #define I486_FEATURES (CPUID_FP87 | CPUID_VME | CPUID_PSE) #define PENTIUM_FEATURES (I486_FEATURES | CPUID_DE | CPUID_TSC | \ - CPUID_MSR | CPUID_MCE | CPUID_CX8 | CPUID_MMX) + CPUID_MSR | CPUID_MCE | CPUID_CX8 | CPUID_MMX | CPUID_APIC) #define PENTIUM2_FEATURES (PENTIUM_FEATURES | CPUID_PAE | CPUID_SEP | \ CPUID_MTRR | CPUID_PGE | CPUID_MCA | CPUID_CMOV | CPUID_PAT | \ CPUID_PSE36 | CPUID_FXSR)