fix to avoid zero division for some virtual machine
diff --git a/xbyak/xbyak_util.h b/xbyak/xbyak_util.h
index ca02534..6310860 100644
--- a/xbyak/xbyak_util.h
+++ b/xbyak/xbyak_util.h
@@ -132,7 +132,7 @@
* (extractBit(data[1], 0, 11) + 1)
* (data[2] + 1);
if (cacheType == DATA_CACHE && smt_width == 0) smt_width = nb_logical_cores;
- assert(smt_width != 0);
+ if (smt_width == 0) smt_width = 1; // avoid possibility of zero division
cores_sharing_data_cache[data_cache_levels] = nb_logical_cores / smt_width;
data_cache_levels++;
}