summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/ruby/system/System.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/ruby/system/System.cc b/src/mem/ruby/system/System.cc
index 6a0721217..01e50ef0b 100644
--- a/src/mem/ruby/system/System.cc
+++ b/src/mem/ruby/system/System.cc
@@ -69,7 +69,7 @@ RubySystem::RubySystem(const Params *p)
if (m_memory_size_bytes == 0) {
m_memory_size_bits = 0;
} else {
- m_memory_size_bits = floorLog2(m_memory_size_bytes);
+ m_memory_size_bits = ceilLog2(m_memory_size_bytes);
}
g_system_ptr = this;