diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2024-09-22 09:48:03 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2024-10-23 18:27:22 +0000 |
commit | c80e69b00d976a5a3b3e84527f270fa7e72a8205 (patch) | |
tree | c8d7528425dd9f79eed0eb36c2e2ea16b5d15b23 /contrib/llvm-project/compiler-rt/lib/builtins/cpu_model | |
parent | 835c3a3e69af562ec6d4ec3639938c96dad1697e (diff) | |
parent | 1de139fdd502e836552eba1049a42b45514d8f7b (diff) |
Diffstat (limited to 'contrib/llvm-project/compiler-rt/lib/builtins/cpu_model')
-rw-r--r-- | contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/x86.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/x86.c b/contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/x86.c index 867ed97e57bf..b1c4abd9d11d 100644 --- a/contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/x86.c +++ b/contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/x86.c @@ -59,6 +59,7 @@ enum ProcessorTypes { INTEL_SIERRAFOREST, INTEL_GRANDRIDGE, INTEL_CLEARWATERFOREST, + AMDFAM1AH, CPU_TYPE_MAX }; @@ -97,6 +98,7 @@ enum ProcessorSubtypes { INTEL_COREI7_ARROWLAKE, INTEL_COREI7_ARROWLAKE_S, INTEL_COREI7_PANTHERLAKE, + AMDFAM1AH_ZNVER5, CPU_SUBTYPE_MAX }; @@ -803,6 +805,24 @@ static const char *getAMDProcessorTypeAndSubtype(unsigned Family, break; // "znver4" } break; // family 19h + case 26: + CPU = "znver5"; + *Type = AMDFAM1AH; + if (Model <= 0x77) { + // Models 00h-0Fh (Breithorn). + // Models 10h-1Fh (Breithorn-Dense). + // Models 20h-2Fh (Strix 1). + // Models 30h-37h (Strix 2). + // Models 38h-3Fh (Strix 3). + // Models 40h-4Fh (Granite Ridge). + // Models 50h-5Fh (Weisshorn). + // Models 60h-6Fh (Krackan1). + // Models 70h-77h (Sarlak). + CPU = "znver5"; + *Subtype = AMDFAM1AH_ZNVER5; + break; // "znver5" + } + break; default: break; // Unknown AMD CPU. } |