summaryrefslogtreecommitdiff
path: root/src/arch/power/process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/power/process.cc')
-rw-r--r--src/arch/power/process.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/arch/power/process.cc b/src/arch/power/process.cc
index 3c5d1e8b4..175a84f6b 100644
--- a/src/arch/power/process.cc
+++ b/src/arch/power/process.cc
@@ -277,15 +277,14 @@ PowerLiveProcess::setSyscallArg(ThreadContext *tc,
}
void
-PowerLiveProcess::setSyscallReturn(ThreadContext *tc,
- SyscallReturn return_value)
+PowerLiveProcess::setSyscallReturn(ThreadContext *tc, SyscallReturn sysret)
{
Cr cr = tc->readIntReg(INTREG_CR);
- if (return_value.successful()) {
+ if (sysret.successful()) {
cr.cr0.so = 0;
} else {
cr.cr0.so = 1;
}
tc->setIntReg(INTREG_CR, cr);
- tc->setIntReg(ReturnValueReg, return_value.value());
+ tc->setIntReg(ReturnValueReg, sysret.encodedValue());
}