summaryrefslogtreecommitdiff
path: root/cpu/exec_context.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-03-09 15:42:09 -0500
committerAli Saidi <saidi@eecs.umich.edu>2006-03-09 15:42:09 -0500
commitce3a6343b6c54e95d63403d46c9ddea384e49476 (patch)
tree2acc56fa5c2ea2230658ed9b23a17364a241fdab /cpu/exec_context.hh
parentab67095b2a43b5f2d44d1e1a517d1079ddf9f104 (diff)
downloadgem5-ce3a6343b6c54e95d63403d46c9ddea384e49476.tar.xz
no more common syscall emulation, now common for everyone
check abi-tag note section of elf binary for OS add pseudo functions (moved from alpha and made to be generic) move setsyscallreturn into isa traits arch/alpha/SConscript: no more common syscall emulation, now common for everyone arch/alpha/isa_traits.hh: move setsyscallreturn into isa description arch/alpha/linux/process.cc: arch/alpha/tru64/process.cc: use generic functions rather than alpha specific ones arch/sparc/isa_traits.hh: have consts for generic pseudo syscalls arch/sparc/linux/process.cc: use generic functions base/loader/elf_object.cc: check abi-tag note section of elf binary for OS cpu/exec_context.hh: move syssyscallreturn into isa traits sim/process.cc: find call num with a more generic sim/syscall_emul.cc: sim/syscall_emul.hh: add pseudo functions (moved from alpha and made to be generic) --HG-- extra : convert_revision : 5a31024ecde7e39b830365ddd84593ea501a34d2
Diffstat (limited to 'cpu/exec_context.hh')
-rw-r--r--cpu/exec_context.hh14
1 files changed, 1 insertions, 13 deletions
diff --git a/cpu/exec_context.hh b/cpu/exec_context.hh
index bc3551b4f..97bfc5f0d 100644
--- a/cpu/exec_context.hh
+++ b/cpu/exec_context.hh
@@ -464,19 +464,7 @@ class ExecContext
void setSyscallReturn(SyscallReturn return_value)
{
- // check for error condition. Alpha syscall convention is to
- // indicate success/failure in reg a3 (r19) and put the
- // return value itself in the standard return value reg (v0).
- const int RegA3 = 19; // only place this is used
- if (return_value.successful()) {
- // no error
- regs.intRegFile[RegA3] = 0;
- regs.intRegFile[TheISA::ReturnValueReg] = return_value.value();
- } else {
- // got an error, return details
- regs.intRegFile[RegA3] = (TheISA::IntReg) -1;
- regs.intRegFile[TheISA::ReturnValueReg] = -return_value.value();
- }
+ TheISA::setSyscallReturn(return_value, &regs);
}
void syscall()