From: Gabe Black Date: Wed, 6 Dec 2006 16:38:39 +0000 (-0500) Subject: Use the setSyscallReturn defined in arch rather than duplicating it here. X-Git-Tag: m5_2.0_beta3~274^2~20 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07a4e2cd36c35ab7b6be356d9bcf3b58b5ef6794;p=gem5.git Use the setSyscallReturn defined in arch rather than duplicating it here. --HG-- extra : convert_revision : 862ece59aa253b52b6744a0a76738d5ee19561b3 --- diff --git a/src/cpu/o3/mips/cpu_impl.hh b/src/cpu/o3/mips/cpu_impl.hh index 08e9ba483..e7dbd3aba 100644 --- a/src/cpu/o3/mips/cpu_impl.hh +++ b/src/cpu/o3/mips/cpu_impl.hh @@ -220,16 +220,6 @@ template void MipsO3CPU::setSyscallReturn(SyscallReturn return_value, int tid) { - // check for error condition. - 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); - } + TheISA::setSyscallReturn(return_value, this->tcBase(tid)); } #endif