From 07a4e2cd36c35ab7b6be356d9bcf3b58b5ef6794 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 6 Dec 2006 11:38:39 -0500 Subject: Use the setSyscallReturn defined in arch rather than duplicating it here. --HG-- extra : convert_revision : 862ece59aa253b52b6744a0a76738d5ee19561b3 --- src/cpu/o3/mips/cpu_impl.hh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/cpu/o3/mips') 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 -- cgit v1.2.3