mem: Add constexprs to spatio_temporal_memory_streaming.cc

Change-Id: I6fa3d9f9a9d89d59d9ec1fc97c152bea3059f87d
This commit is contained in:
Erin Le
2024-08-06 00:06:38 +00:00
committed by Bobby R. Bruce
parent be6fadca52
commit 2955d89ed3

View File

@@ -92,7 +92,7 @@ STeMS::checkForActiveGenerationsEnd(const CacheAccessor &cache)
} }
if (generation_ended) { if (generation_ended) {
// PST is indexed using the PC (secure bit is unused) // PST is indexed using the PC (secure bit is unused)
bool is_secure = false; constexpr bool is_secure = false;
auto pst_entry = patternSequenceTable.findEntry(pst_addr, auto pst_entry = patternSequenceTable.findEntry(pst_addr,
is_secure); is_secure);
if (pst_entry == nullptr) { if (pst_entry == nullptr) {
@@ -222,7 +222,7 @@ STeMS::reconstructSequence(
// Now query the PST with the PC of each RMOB entry // Now query the PST with the PC of each RMOB entry
idx = 0; idx = 0;
bool is_secure = false; constexpr bool is_secure = false;
for (auto it = rmob_it; it != rmob.end() && (idx < reconstructionEntries); for (auto it = rmob_it; it != rmob.end() && (idx < reconstructionEntries);
it++) { it++) {
auto pst_entry = patternSequenceTable.findEntry(it->pstAddress, auto pst_entry = patternSequenceTable.findEntry(it->pstAddress,