Skip to content

Commit

Permalink
add an upper limit check for inner coherent client
Browse files Browse the repository at this point in the history
  • Loading branch information
wsong83 committed Jun 27, 2024
1 parent 3c8bb13 commit 3025da0
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 3025da0

Please sign in to comment.