summaryrefslogtreecommitdiff
path: root/src/sim/syscall_emul.cc
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2011-10-28 13:04:33 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2011-10-28 13:04:33 -0500
commit706323fa21de674d8064c95a3c0036f0342430ee (patch)
tree40bcf3249c0d9d9b21a70f65f0e56ca9020017f7 /src/sim/syscall_emul.cc
parentcbaebb3b5ebe709689f481ad395034335bea2152 (diff)
parent6f9d294e8685f49d91af48065736ac1d67e53718 (diff)
downloadgem5-706323fa21de674d8064c95a3c0036f0342430ee.tar.xz
Merged with recent changes.
Diffstat (limited to 'src/sim/syscall_emul.cc')
-rw-r--r--src/sim/syscall_emul.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc
index 6873d4aa4..203eaff2a 100644
--- a/src/sim/syscall_emul.cc
+++ b/src/sim/syscall_emul.cc
@@ -166,8 +166,7 @@ brkFunc(SyscallDesc *desc, int num, LiveProcess *p, ThreadContext *tc)
for (ChunkGenerator gen(p->brk_point, new_brk - p->brk_point,
VMPageSize); !gen.done(); gen.next()) {
if (!p->pTable->translate(gen.addr()))
- p->pTable->allocate(roundDown(gen.addr(), VMPageSize),
- VMPageSize);
+ p->allocateMem(roundDown(gen.addr(), VMPageSize), VMPageSize);
// if the address is already there, zero it out
else {