summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-03-09 15:56:42 -0500
committerAli Saidi <saidi@eecs.umich.edu>2006-03-09 15:56:42 -0500
commit56cc760f6f53138c133c5d4e1f9d3e3199965d99 (patch)
tree991271751791743eb9db33508fd3d183e61772be /cpu
parent91545ac2bf5ac47ecbfc403ef6e2b2ce340ae551 (diff)
parentce3a6343b6c54e95d63403d46c9ddea384e49476 (diff)
downloadgem5-56cc760f6f53138c133c5d4e1f9d3e3199965d99.tar.xz
Merge zizzer:/bk/multiarch
into zeep.eecs.umich.edu:/z/saidi/work/m5.ma2 arch/alpha/isa_traits.hh: arch/alpha/linux/process.cc: arch/sparc/isa_traits.hh: arch/sparc/linux/process.cc: sim/process.cc: merge --HG-- rename : cpu/exec_context.hh => cpu/cpu_exec_context.hh extra : convert_revision : fea0155c8e23abbd0d5d5251abbd0f4d223fe935
Diffstat (limited to 'cpu')
-rw-r--r--cpu/cpu_exec_context.hh14
1 files changed, 1 insertions, 13 deletions
diff --git a/cpu/cpu_exec_context.hh b/cpu/cpu_exec_context.hh
index a5153e618..beaf67352 100644
--- a/cpu/cpu_exec_context.hh
+++ b/cpu/cpu_exec_context.hh
@@ -505,19 +505,7 @@ class CPUExecContext
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()