Use the setSyscallReturn defined in arch rather than duplicating it here.

--HG--
extra : convert_revision : 862ece59aa253b52b6744a0a76738d5ee19561b3
This commit is contained in:
Gabe Black 2006-12-06 11:38:39 -05:00
parent ef942ceecb
commit 07a4e2cd36

View file

@ -220,16 +220,6 @@ template <class Impl>
void void
MipsO3CPU<Impl>::setSyscallReturn(SyscallReturn return_value, int tid) MipsO3CPU<Impl>::setSyscallReturn(SyscallReturn return_value, int tid)
{ {
// check for error condition. TheISA::setSyscallReturn(return_value, this->tcBase(tid));
if (return_value.successful()) {
// no error
this->setArchIntReg(TheISA::SyscallSuccessReg, 0, tid);
this->setArchIntReg(TheISA::ReturnValueReg, return_value.value(), tid);
} else {
// got an error, return details
this->setArchIntReg(TheISA::SyscallSuccessReg,
(TheISA::IntReg) -1, tid);
this->setArchIntReg(TheISA::ReturnValueReg, -return_value.value(), tid);
}
} }
#endif #endif