summaryrefslogtreecommitdiff
path: root/sim/syscall_emul.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/syscall_emul.cc')
-rw-r--r--sim/syscall_emul.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/sim/syscall_emul.cc b/sim/syscall_emul.cc
index 5abbdfd74..4ae2d2631 100644
--- a/sim/syscall_emul.cc
+++ b/sim/syscall_emul.cc
@@ -61,12 +61,7 @@ SyscallReturn
unimplementedFunc(SyscallDesc *desc, int callnum, Process *process,
ExecContext *xc)
{
- cerr << "Error: syscall " << desc->name
- << " (#" << callnum << ") unimplemented.";
- cerr << " Args: " << xc->getSyscallArg(0) << ", " << xc->getSyscallArg(1)
- << ", ..." << endl;
-
- abort();
+ fatal("syscall %s (#%d) unimplemented.", desc->name, callnum);
}
@@ -74,10 +69,8 @@ SyscallReturn
ignoreFunc(SyscallDesc *desc, int callnum, Process *process,
ExecContext *xc)
{
- DCOUT(SyscallWarnings) << "Warning: ignoring syscall " << desc->name
- << "(" << xc->getSyscallArg(0)
- << ", " << xc->getSyscallArg(1)
- << ", ...)" << endl;
+ warn("ignoring syscall %s(%d, %d, ...)", desc->name,
+ xc->getSyscallArg(0), xc->getSyscallArg(1));
return 0;
}