summaryrefslogtreecommitdiff
path: root/src/mem/ruby/common/SubBlock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/ruby/common/SubBlock.cc')
-rw-r--r--src/mem/ruby/common/SubBlock.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/ruby/common/SubBlock.cc b/src/mem/ruby/common/SubBlock.cc
index 5a42a415d..48485bf8b 100644
--- a/src/mem/ruby/common/SubBlock.cc
+++ b/src/mem/ruby/common/SubBlock.cc
@@ -26,12 +26,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "base/stl_helpers.hh"
#include "mem/ruby/common/SubBlock.hh"
+using m5::stl_helpers::operator<<;
+
SubBlock::SubBlock(const Address& addr, int size)
{
m_address = addr;
- setSize(size);
+ resize(size);
for (int i = 0; i < size; i++) {
setByte(i, 0);
}