summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mem/page_table.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/page_table.cc b/src/mem/page_table.cc
index cd3422560..d771479d0 100644
--- a/src/mem/page_table.cc
+++ b/src/mem/page_table.cc
@@ -39,6 +39,7 @@
#include <string>
+#include "base/compiler.hh"
#include "base/trace.hh"
#include "debug/MMU.hh"
#include "sim/faults.hh"
@@ -83,7 +84,7 @@ EmulationPageTable::remap(Addr vaddr, int64_t size, Addr new_vaddr)
new_vaddr, size);
while (size > 0) {
- auto new_it = pTable.find(new_vaddr);
+ auto new_it M5_VAR_USED = pTable.find(new_vaddr);
auto old_it = pTable.find(vaddr);
assert(old_it != pTable.end() && new_it == pTable.end());