diff options
Diffstat (limited to 'src/arch/alpha')
-rw-r--r-- | src/arch/alpha/process.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/arch/alpha/process.cc b/src/arch/alpha/process.cc index 07208fb29..8cc83b0fd 100644 --- a/src/arch/alpha/process.cc +++ b/src/arch/alpha/process.cc @@ -220,19 +220,18 @@ AlphaLiveProcess::setSyscallArg(ThreadContext *tc, } void -AlphaLiveProcess::setSyscallReturn(ThreadContext *tc, - SyscallReturn return_value) +AlphaLiveProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret) { // 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). - if (return_value.successful()) { + if (sysret.successful()) { // no error tc->setIntReg(SyscallSuccessReg, 0); - tc->setIntReg(ReturnValueReg, return_value.value()); + tc->setIntReg(ReturnValueReg, sysret.returnValue()); } else { // got an error, return details tc->setIntReg(SyscallSuccessReg, (IntReg)-1); - tc->setIntReg(ReturnValueReg, -return_value.value()); + tc->setIntReg(ReturnValueReg, sysret.errnoValue()); } } |