summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/MemoryVector.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-06-10 23:17:07 -0700
committerNathan Binkert <nate@binkert.org>2010-06-10 23:17:07 -0700
commit006818aeea6176c4500c5f7414e9f2a822c77062 (patch)
tree74adbd6cc14951943bd6eafc4aba2fb98be7a526 /src/mem/ruby/system/MemoryVector.hh
parentbc87fa30d72df7db6265be50b2c39dc218076f9f (diff)
downloadgem5-006818aeea6176c4500c5f7414e9f2a822c77062.tar.xz
ruby: get rid of Vector and use STL
add a couple of helper functions to base for deleteing all pointers in a container and outputting containers to a stream
Diffstat (limited to 'src/mem/ruby/system/MemoryVector.hh')
-rw-r--r--src/mem/ruby/system/MemoryVector.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/ruby/system/MemoryVector.hh b/src/mem/ruby/system/MemoryVector.hh
index 15cea168d..6719b9fb6 100644
--- a/src/mem/ruby/system/MemoryVector.hh
+++ b/src/mem/ruby/system/MemoryVector.hh
@@ -44,7 +44,7 @@ class MemoryVector
~MemoryVector();
friend class DirectoryMemory;
- void setSize(uint32 size); // destructive
+ void resize(uint32 size); // destructive
void write(const Address & paddr, uint8* data, int len);
uint8* read(const Address & paddr, uint8* data, int len);
@@ -71,7 +71,7 @@ inline
MemoryVector::MemoryVector(uint32 size)
: m_page_offset_mask(4095)
{
- setSize(size);
+ resize(size);
}
inline
@@ -86,7 +86,7 @@ MemoryVector::~MemoryVector()
}
inline void
-MemoryVector::setSize(uint32 size)
+MemoryVector::resize(uint32 size)
{
if (m_pages != NULL){
for (int i = 0; i < m_num_pages; i++) {