CPUID payload
if(maxBasicLeaf >= 4 && vendorIndex == VendorIndex.intel) { Cache cache = void; Leaf4Information leaf4 = void; foreach(ecx; 0..12) { leaf4.info = _cpuid(4, ecx); if(!leaf4.type) break; leaf4.fill(cache); debug(cpuid) import std.stdio; debug(cpuid) writefln("Cache #%s has type '%s' and %s KB size", ecx, leaf4.type, leaf4.size); } }
Deterministic Cache Parameters for Each Level.
** - Add one to the return value to get the result.
Specification: Intel