Ticket #15153: zen-model-name.diff

File zen-model-name.diff, 746 bytes (added by calvinb, 5 years ago)
  • headers/private/shared/cpu_type.h

    diff --git a/headers/private/shared/cpu_type.h b/headers/private/shared/cpu_type.h
    index 8a71c9fabe..219b42d369 100644
    a b get_cpu_model_string(enum cpu_platform platform, enum cpu_vendor cpuVendor,  
    324324                return "FX-Series";
    325325            if (model == 0x10 || model == 0x13)
    326326                return "A-Series";
    327         } else if (family == 0x8f)
    328             return "Ryzen 7";
     327        }
     328        // Zen (0x8f) was here, but the results from parse_amd are
     329        // better; model and stepping only give microarchitecture,
     330        // not the model name. Of course, parse_amd will chop off
     331        // the unneeded parts.
    329332
    330333        // Fallback to manual parsing of the model string
    331334        get_cpuid_model_string(cpuidName);