diff --git a/cpu.cpp b/cpu.cpp index c42dd8bc..4d8577e1 100755 --- a/cpu.cpp +++ b/cpu.cpp @@ -173,6 +173,9 @@ void DetectX86Features() g_cacheLineSize = GETBYTE(cpuid[2], 0); } + if (!g_cacheLineSize) + g_cacheLineSize = CRYPTOPP_L1_CACHE_LINE_SIZE; + g_x86DetectionDone = true; }