diff --git a/src/sim/Process.py b/src/sim/Process.py index bdcb8262c4..767dbfa199 100644 --- a/src/sim/Process.py +++ b/src/sim/Process.py @@ -44,7 +44,7 @@ class Process(SimObject): useArchPT = Param.Bool('false', 'maintain an in-memory version of the page\ table in an architecture-specific format') kvmInSE = Param.Bool('false', 'initialize the process for KvmCPU in SE') - maxStackSize = Param.MemorySize('64MB', 'maximum size of the stack') + maxStackSize = Param.MemorySize('64MiB', 'maximum size of the stack') uid = Param.Int(100, 'user id') euid = Param.Int(100, 'effective user id') diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 581e8dbcef..d6afec8869 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -1822,7 +1822,7 @@ getrlimitFunc(SyscallDesc *desc, ThreadContext *tc, const ByteOrder bo = OS::byteOrder; switch (resource) { case OS::TGT_RLIMIT_STACK: - // max stack size in bytes: make up a number (8MB for now) + // max stack size in bytes: make up a number (8MiB for now) rlp->rlim_cur = rlp->rlim_max = 8 * 1024 * 1024; rlp->rlim_cur = htog(rlp->rlim_cur, bo); rlp->rlim_max = htog(rlp->rlim_max, bo); @@ -1865,7 +1865,7 @@ prlimitFunc(SyscallDesc *desc, ThreadContext *tc, const ByteOrder bo = OS::byteOrder; switch (resource) { case OS::TGT_RLIMIT_STACK: - // max stack size in bytes: make up a number (8MB for now) + // max stack size in bytes: make up a number (8MiB for now) rlp->rlim_cur = rlp->rlim_max = 8 * 1024 * 1024; rlp->rlim_cur = htog(rlp->rlim_cur, bo); rlp->rlim_max = htog(rlp->rlim_max, bo);