change format and add getter for data_cache_size

This commit is contained in:
MITSUNARI Shigeo 2018-02-13 12:03:43 +09:00
parent 80b3c7b933
commit fd587b55ca
6 changed files with 59 additions and 44 deletions

View file

@ -104,6 +104,9 @@ void putCPUinfo()
Core i7-3930K 6 2D
*/
cpu.putFamily();
for (unsigned int i = 0; i < cpu.getDataCacheLevels(); i++) {
printf("cache level=%u data cache size=%u cores sharing data cache=%u\n", i, cpu.getDataCacheSize(i), cpu.getCoresSharingDataCache(i));
}
}
int main()