From: Babu Moger Subject: [PATCH 1/5] target/i386: Fix instruction cache associativity for AMD Date: Fri, 26 Jan 2018 16:39:40 -0500 Message-ID: <20180126213944.7594-2-babu.moger@amd.com> References: <20180126213944.7594-1-babu.moger@amd.com> Mime-Version: 1.0 Content-Type: text/plain Cc: mtosatti@redhat.com, babu.moger@amd.com, qemu-devel@nongnu.org, kvm@vger.kernel.org To: pbonzini@redhat.com, rth@twiddle.net, ehabkost@redhat.com, pixo@polepetko.eu Return-path: Received: from mail-by2nam01on0070.outbound.protection.outlook.com ([104.47.34.70]:19812 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751992AbeAZVkA (ORCPT ); Fri, 26 Jan 2018 16:40:00 -0500 In-Reply-To: <20180126213944.7594-1-babu.moger@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: Per Processor Programming Reference, CPUID_Fn80000005_EDX should report L1 instruction cache associativity as 4(way) instead of 2(way). Signed-off-by: Babu Moger --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 3818d72831..cb055f5940 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -123,7 +123,7 @@ /*FIXME: CPUID leaf 0x80000005 is inconsistent with leaves 2 & 4 */ #define L1I_LINES_PER_TAG 1 #define L1I_SIZE_KB_AMD 64 -#define L1I_ASSOCIATIVITY_AMD 2 +#define L1I_ASSOCIATIVITY_AMD 4 /* Level 2 unified cache: */ #define L2_LINE_SIZE 64 -- 2.16.0