From 2955d89ed30fed8d982c29057c06d752822cbac9 Mon Sep 17 00:00:00 2001 From: Erin Le Date: Tue, 6 Aug 2024 00:06:38 +0000 Subject: [PATCH] mem: Add constexprs to spatio_temporal_memory_streaming.cc Change-Id: I6fa3d9f9a9d89d59d9ec1fc97c152bea3059f87d --- src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc index a1b40d182d..b16267c09f 100644 --- a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc +++ b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc @@ -92,7 +92,7 @@ STeMS::checkForActiveGenerationsEnd(const CacheAccessor &cache) } if (generation_ended) { // 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, is_secure); if (pst_entry == nullptr) { @@ -222,7 +222,7 @@ STeMS::reconstructSequence( // Now query the PST with the PC of each RMOB entry idx = 0; - bool is_secure = false; + constexpr bool is_secure = false; for (auto it = rmob_it; it != rmob.end() && (idx < reconstructionEntries); it++) { auto pst_entry = patternSequenceTable.findEntry(it->pstAddress,