summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/DirectoryMemory.cc
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2010-03-21 21:22:21 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2010-03-21 21:22:21 -0700
commit8b15ed7ebf939688e68ed2e6b1b2099972e1d295 (patch)
treec23fd506b49fcc04188255a1d5570dae09babb9c /src/mem/ruby/system/DirectoryMemory.cc
parent92cfd1cac7f6f2d0abf64808f08f063cd0db1263 (diff)
downloadgem5-8b15ed7ebf939688e68ed2e6b1b2099972e1d295.tar.xz
ruby: Added flag to disable mem_vec allocation
The RubySystem flag no_mem_vec will disable Ruby from allocating it's memory data array.
Diffstat (limited to 'src/mem/ruby/system/DirectoryMemory.cc')
-rw-r--r--src/mem/ruby/system/DirectoryMemory.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mem/ruby/system/DirectoryMemory.cc b/src/mem/ruby/system/DirectoryMemory.cc
index 78ca1e9e4..2c32eacdc 100644
--- a/src/mem/ruby/system/DirectoryMemory.cc
+++ b/src/mem/ruby/system/DirectoryMemory.cc
@@ -68,10 +68,9 @@ void DirectoryMemory::init()
m_entries = new Directory_Entry*[m_num_entries];
for (int i=0; i < m_num_entries; i++)
m_entries[i] = NULL;
+ m_ram = g_system_ptr->getMemoryVector();
}
- m_ram = g_system_ptr->getMemoryVector();
-
m_num_directories++;
m_num_directories_bits = log_int(m_num_directories);
m_total_size_bytes += m_size_bytes;