Added experimental support for AMD family 19h (Zen 3) CPUs.

This commit is contained in:
Michael Möller
2020-12-27 16:05:31 +01:00
parent 5bd6bf0f3c
commit 09c16898a4
4 changed files with 6 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# Code style defaults
csharp_using_directive_placement = outside_namespace:suggestion
dotnet_sort_system_directives_first = true
csharp_prefer_braces = true:refactoring
csharp_prefer_braces = when_multiline:suggestion
csharp_preserve_single_line_blocks = true:none
csharp_preserve_single_line_statements = false:none
csharp_prefer_static_local_function = true:suggestion

View File

@@ -112,6 +112,7 @@ namespace OpenHardwareMonitor.Hardware.CPU {
hardware.Add(new AMD10CPU(index, coreThreads, settings));
break;
case 0x17:
case 0x19:
hardware.Add(new AMD17CPU(index, coreThreads, settings));
break;
default:

View File

@@ -168,6 +168,7 @@ namespace OpenHardwareMonitor.Hardware.CPU {
nameBuilder.Replace("with Radeon Vega Mobile Gfx", "");
nameBuilder.Replace("w/ Radeon Vega Mobile Gfx", "");
nameBuilder.Replace("with Radeon Vega Graphics", "");
nameBuilder.Replace("with Radeon Graphics", "");
nameBuilder.Replace("APU with Radeon(tm) HD Graphics", "");
nameBuilder.Replace("APU with Radeon(TM) HD Graphics", "");
nameBuilder.Replace("APU with AMD Radeon R2 Graphics", "");
@@ -220,7 +221,7 @@ namespace OpenHardwareMonitor.Hardware.CPU {
coreMaskWith = NextLog2(maxCoreIdPerPackage);
break;
case Vendor.AMD:
if (this.family == 0x17) {
if (this.family == 0x17 || this.family == 0x19) {
coreMaskWith = (cpuidExtData[8, 2] >> 12) & 0xF;
threadMaskWith =
NextLog2(((cpuidExtData[0x1E, 1] >> 8) & 0xFF) + 1);

View File

@@ -10,5 +10,5 @@
using System.Reflection;
[assembly: AssemblyVersion("0.9.5.0")]
[assembly: AssemblyInformationalVersion("0.9.5")]
[assembly: AssemblyVersion("0.9.6.0")]
[assembly: AssemblyInformationalVersion("0.9.6")]