mirror of
https://github.com/anrieff/libcpuid
synced 2025-02-12 20:24:05 +00:00
Related to pull request #35: Expose intel brand & model codes.
The detected intel brand code and model code (arbitrary numbers, related to the detection algorithm) are printed at verbosiness level 2 or higher. You can see them with `cpuid_tool --all -vv` (if running on an Intel CPU), or, generally, when decoding Intel CPU data, e.g. `cpuid_tool --load=tests/intel/nehalem/bloomfield.test --all -vv`.
This commit is contained in:
parent
db6f3abc9a
commit
1073370613
1 changed files with 5 additions and 1 deletions
|
@ -804,8 +804,12 @@ int cpuid_identify_intel(struct cpu_raw_data_t* raw, struct cpu_id_t* data)
|
|||
decode_intel_oldstyle_cache_info(raw, data);
|
||||
}
|
||||
decode_intel_number_of_cores(raw, data);
|
||||
intel_code_t brand_code = get_brand_code(data);
|
||||
intel_model_t model_code = get_model_code(data);
|
||||
debugf(2, "Detected Intel brand code: %d\n", brand_code);
|
||||
debugf(2, "Detected Intel model code: %d\n", model_code);
|
||||
match_cpu_codename(cpudb_intel, COUNT_OF(cpudb_intel), data,
|
||||
get_brand_code(data), get_model_code(data));
|
||||
brand_code, model_code);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue