From dd9bb7d4db15a2198a2bd1ade2282e577b6f729d Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 May 2007 19:19:01 +0000 Subject: [PATCH] fix g_cacheLineSize for Pentium 3 --- trunk/c5/cpu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/c5/cpu.cpp b/trunk/c5/cpu.cpp index c42dd8bc..4d8577e1 100755 --- a/trunk/c5/cpu.cpp +++ b/trunk/c5/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; }