Use the setSyscallReturn defined in arch rather than duplicating it here.
--HG-- extra : convert_revision : 862ece59aa253b52b6744a0a76738d5ee19561b3
This commit is contained in:
parent
ef942ceecb
commit
07a4e2cd36
1 changed files with 1 additions and 11 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue