aboutsummaryrefslogtreecommitdiff
path: root/riscv/mmu.cc
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2022-09-22 17:34:33 -0700
committerAndrew Waterman <andrew@sifive.com>2022-10-04 15:40:01 -0700
commitce69fb5db97ecf240336b7826dd9dddeb32e5dca (patch)
treef78647d0eafa9abc414f5ded2a3663c7506cfd9c /riscv/mmu.cc
parenta51e44ed228e48fc1dbf24ec7dc23cbd61a7874a (diff)
downloadspike-ce69fb5db97ecf240336b7826dd9dddeb32e5dca.zip
spike-ce69fb5db97ecf240336b7826dd9dddeb32e5dca.tar.gz
spike-ce69fb5db97ecf240336b7826dd9dddeb32e5dca.tar.bz2
Suppress most unused variable warnings
Diffstat (limited to 'riscv/mmu.cc')
-rw-r--r--riscv/mmu.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/mmu.cc b/riscv/mmu.cc
index d0a55f0..1028026 100644
--- a/riscv/mmu.cc
+++ b/riscv/mmu.cc
@@ -114,7 +114,7 @@ reg_t reg_from_bytes(size_t len, const uint8_t* bytes)
abort();
}
-bool mmu_t::mmio_ok(reg_t addr, access_type type)
+bool mmu_t::mmio_ok(reg_t addr, access_type UNUSED type)
{
// Disallow access to debug region when not in debug mode
if (addr >= DEBUG_START && addr <= DEBUG_END && proc && !proc->state.debug_mode)