aboutsummaryrefslogtreecommitdiffhomepage
path: root/sample/test_util.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2018-02-13 12:03:43 +0900
committerMITSUNARI Shigeo <[email protected]>2018-02-13 12:09:44 +0900
commitfd587b55ca8f03f60cc14fa53448c04229dd2629 (patch)
tree33b453e91ddef8f8413cde3703e047e85bdbdc91 /sample/test_util.cpp
parent80b3c7b933cb3bfa50c9bdab2065da382de75070 (diff)
downloadxbyak-fd587b55ca8f03f60cc14fa53448c04229dd2629.tar.gz
xbyak-fd587b55ca8f03f60cc14fa53448c04229dd2629.zip
change format and add getter for data_cache_sizev5.62
Diffstat (limited to 'sample/test_util.cpp')
-rw-r--r--sample/test_util.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sample/test_util.cpp b/sample/test_util.cpp
index bb515db..9b19935 100644
--- a/sample/test_util.cpp
+++ b/sample/test_util.cpp
@@ -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()