#include <stdint.h> #include <cpuinfo.h> #include <cpuinfo/log.h> #include <cpuinfo/utils.h> #include <x86/cpuid.h> enum cache_type { … }; bool cpuinfo_x86_decode_deterministic_cache_parameters( struct cpuid_regs regs, struct cpuinfo_x86_caches* cache, uint32_t* package_cores_max) { … } bool cpuinfo_x86_decode_cache_properties(struct cpuid_regs regs, struct cpuinfo_x86_caches* cache) { … }