Change default value for n_cores in setCacheHierarchy.
If the default value is 0 and the cpu has no leaf B, then in the loop
on the subleaves of leaf 4, the number of cores sharing a data cache will be 0.
diff --git a/xbyak/xbyak_util.h b/xbyak/xbyak_util.h
index 36fe3c0..ca02534 100644
--- a/xbyak/xbyak_util.h
+++ b/xbyak/xbyak_util.h
@@ -96,7 +96,7 @@
// const unsigned int INSTRUCTION_CACHE = 2;
const unsigned int UNIFIED_CACHE = 3;
unsigned int smt_width = 0;
- unsigned int n_cores = 0;
+ unsigned int n_cores = (unsigned int) -1;
unsigned int data[4];
/*