diff options
author | Brandon Potter <brandon.potter@amd.com> | 2015-04-22 07:51:27 -0700 |
---|---|---|
committer | Brandon Potter <brandon.potter@amd.com> | 2015-04-22 07:51:27 -0700 |
commit | 344a437064a94b753119994f9c2ba20b90a25c6a (patch) | |
tree | 0bbd0627516cfe0a6aef2580b8081f6f7567e236 /src/sim | |
parent | 9c6509f19830300aa1eea8e63e6657bdf1cccc53 (diff) | |
download | gem5-344a437064a94b753119994f9c2ba20b90a25c6a.tar.xz |
syscall_emul: update getrlimit to use warn
Don't use std::cerr directly, and just return EINVAL instead of aborting.
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/syscall_emul.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 3b584260f..bb73e1fd2 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -1274,9 +1274,8 @@ getrlimitFunc(SyscallDesc *desc, int callnum, LiveProcess *process, break; default: - std::cerr << "getrlimitFunc: unimplemented resource " << resource - << std::endl; - abort(); + warn("getrlimit: unimplemented resource %d", resource); + return -EINVAL; break; } |