Skip to content

Commit 09c1689

Browse files
committed
Added experimental support for AMD family 19h (Zen 3) CPUs.
1 parent 5bd6bf0 commit 09c1689

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case
5555
# Code style defaults
5656
csharp_using_directive_placement = outside_namespace:suggestion
5757
dotnet_sort_system_directives_first = true
58-
csharp_prefer_braces = true:refactoring
58+
csharp_prefer_braces = when_multiline:suggestion
5959
csharp_preserve_single_line_blocks = true:none
6060
csharp_preserve_single_line_statements = false:none
6161
csharp_prefer_static_local_function = true:suggestion

Hardware/CPU/CPUGroup.cs

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public CPUGroup(ISettings settings) {
112112
hardware.Add(new AMD10CPU(index, coreThreads, settings));
113113
break;
114114
case 0x17:
115+
case 0x19:
115116
hardware.Add(new AMD17CPU(index, coreThreads, settings));
116117
break;
117118
default:

Hardware/CPU/CPUID.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ private CPUID(int group, int thread, GroupAffinity affinity) {
168168
nameBuilder.Replace("with Radeon Vega Mobile Gfx", "");
169169
nameBuilder.Replace("w/ Radeon Vega Mobile Gfx", "");
170170
nameBuilder.Replace("with Radeon Vega Graphics", "");
171+
nameBuilder.Replace("with Radeon Graphics", "");
171172
nameBuilder.Replace("APU with Radeon(tm) HD Graphics", "");
172173
nameBuilder.Replace("APU with Radeon(TM) HD Graphics", "");
173174
nameBuilder.Replace("APU with AMD Radeon R2 Graphics", "");
@@ -220,7 +221,7 @@ private CPUID(int group, int thread, GroupAffinity affinity) {
220221
coreMaskWith = NextLog2(maxCoreIdPerPackage);
221222
break;
222223
case Vendor.AMD:
223-
if (this.family == 0x17) {
224+
if (this.family == 0x17 || this.family == 0x19) {
224225
coreMaskWith = (cpuidExtData[8, 2] >> 12) & 0xF;
225226
threadMaskWith =
226227
NextLog2(((cpuidExtData[0x1E, 1] >> 8) & 0xFF) + 1);

Properties/AssemblyVersion.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ This Source Code Form is subject to the terms of the Mozilla Public
1010

1111
using System.Reflection;
1212

13-
[assembly: AssemblyVersion("0.9.5.0")]
14-
[assembly: AssemblyInformationalVersion("0.9.5")]
13+
[assembly: AssemblyVersion("0.9.6.0")]
14+
[assembly: AssemblyInformationalVersion("0.9.6")]

0 commit comments

Comments
 (0)