summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Potter <brandon.potter@amd.com>2015-04-22 07:51:27 -0700
committerBrandon Potter <brandon.potter@amd.com>2015-04-22 07:51:27 -0700
commit344a437064a94b753119994f9c2ba20b90a25c6a (patch)
tree0bbd0627516cfe0a6aef2580b8081f6f7567e236
parent9c6509f19830300aa1eea8e63e6657bdf1cccc53 (diff)
downloadgem5-344a437064a94b753119994f9c2ba20b90a25c6a.tar.xz
syscall_emul: update getrlimit to use warn
Don't use std::cerr directly, and just return EINVAL instead of aborting.
-rw-r--r--src/sim/syscall_emul.hh5
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;
}