mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Workaround for L3 cache detection of Ryzen 3000
This code is planned to get refactored or removed anyway, so just do a cheap workaround. Reviewed by: Imarok Fixes: #4360 Differential Revision: https://code.wildfiregames.com/D2353 This was SVN commit r23262.
This commit is contained in:
parent
72fc4105e2
commit
4171d62d1b
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue