diff options
author | Steve Reinhardt <Steve.Reinhardt@amd.com> | 2008-11-15 09:30:10 -0800 |
---|---|---|
committer | Steve Reinhardt <Steve.Reinhardt@amd.com> | 2008-11-15 09:30:10 -0800 |
commit | 4514f565e3dfe1de41bbaec05f3f0074e5299bac (patch) | |
tree | e70dc0c3c09f7b035a7c33c69b98562a6c198a23 /src/sim/syscall_emul.hh | |
parent | ba8936120e4de7a4cdf6093a0e0cb04e0d1b8a59 (diff) | |
download | gem5-4514f565e3dfe1de41bbaec05f3f0074e5299bac.tar.xz |
syscalls: fix latent brk/obreak bug.
Bogus calls to ChunkGenerator with negative size were triggering
a new assertion that was added there.
Also did a little renaming and cleanup in the process.
Diffstat (limited to 'src/sim/syscall_emul.hh')
-rw-r--r-- | src/sim/syscall_emul.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 2e8071196..57403ab27 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -191,9 +191,9 @@ SyscallReturn exitFunc(SyscallDesc *desc, int num, SyscallReturn getpagesizeFunc(SyscallDesc *desc, int num, LiveProcess *p, ThreadContext *tc); -/// Target obreak() handler: set brk address. -SyscallReturn obreakFunc(SyscallDesc *desc, int num, - LiveProcess *p, ThreadContext *tc); +/// Target brk() handler: set brk address. +SyscallReturn brkFunc(SyscallDesc *desc, int num, + LiveProcess *p, ThreadContext *tc); /// Target close() handler. SyscallReturn closeFunc(SyscallDesc *desc, int num, |