Skip to content

Commit

Permalink
Merge pull request #100 from comparch-security/limit-cache-scale
Browse files Browse the repository at this point in the history
add an upper limit check for inner coherent client
  • Loading branch information
wsong83 authored Jun 27, 2024
2 parents 3c8bb13 + 3025da0 commit ec1c994
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cache/coherence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class InnerCohPortBase
return std::make_pair(-1, policy);
} else {
coh.push_back(c);
assert(coh.size() <= 64 || 0 ==
"Only 64 coherent inner caches are supported for now as the directory in class MetadataDirectoryBase is implemented as a 64-bit bitmap.");
return std::make_pair(coh.size()-1, policy);
}
}
Expand Down

0 comments on commit ec1c994

Please sign in to comment.