From: Nicolas Auvray Date: Thu, 13 Aug 2020 16:27:44 +0000 (+0200) Subject: Fix #949699 on 0.0.23b X-Git-Tag: archive/raspbian/0.0.25b-1.1+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fec9bdabe04a1990655c800d2b9fd89ff08dbb42;p=0ad.git Fix #949699 on 0.0.23b Bug: https://trac.wildfiregames.com/ticket/4360 Bug-Debian: https://bugs.debian.org/949699 Gbp-Pq: Name fix-ryzen-l3-cache-error.patch --- diff --git a/source/lib/sysdep/arch/x86_x64/cache.cpp b/source/lib/sysdep/arch/x86_x64/cache.cpp index 1be905a..761254c 100644 --- a/source/lib/sysdep/arch/x86_x64/cache.cpp +++ b/source/lib/sysdep/arch/x86_x64/cache.cpp @@ -89,7 +89,8 @@ static x86_x64::Cache L1Cache(u32 reg, x86_x64::Cache::Type type) static const size_t associativityTable[16] = { 0, 1, 2, 0, 4, 0, 8, 0, - 16, 0, 32, 48, 64, 96, 128, x86_x64::Cache::fullyAssociative + // TODO: The second '16' does not obey to the specifications and is only a workaround. For a correct implementation please look here: https://community.amd.com/thread/244207 + 16, 16, 32, 48, 64, 96, 128, x86_x64::Cache::fullyAssociative }; static x86_x64::Cache L2Cache(u32 reg, x86_x64::Cache::Type type)