Fix assertion failure when no L3 cache.

Fix typo.

This was SVN commit r9078.
This commit is contained in:
Ykkrosh 2011-03-18 18:42:10 +00:00
parent ecbd0ae31b
commit 22a651bb86

View File

@ -587,12 +587,14 @@ static LibError DetectCacheAndTLB()
for(size_t i = 0; i < x86_x64_Cache::maxLevels; i++)
{
debug_assert(caches[L1D+i].type != x86_x64_Cache::kInstruction);
debug_assert(caches[L1D+i].level == i+1);
if(caches[L1D+i].type != x86_x64_Cache::kNull)
debug_assert(caches[L1D+i].level == i+1);
debug_assert(caches[L1D+i].Validate() == true);
debug_assert(caches[L1I+i].type != x86_x64_Cache::kData);
debug_assert(caches[L1I+i].level == i+1);
debug_assert(caches[L1D+i].Validate() == true);
if(caches[L1I+i].type != x86_x64_Cache::kNull)
debug_assert(caches[L1I+i].level == i+1);
debug_assert(caches[L1I+i].Validate() == true);
}
return INFO::OK;