diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2006-12-06 11:38:39 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2006-12-06 11:38:39 -0500 |
commit | 07a4e2cd36c35ab7b6be356d9bcf3b58b5ef6794 (patch) | |
tree | 1360dbf14801eb7faa90126405b9b0090cebac79 /src/cpu/o3 | |
parent | ef942ceecba7ca1affee5545ba9004d32d1e8536 (diff) | |
download | gem5-07a4e2cd36c35ab7b6be356d9bcf3b58b5ef6794.tar.xz |
Use the setSyscallReturn defined in arch rather than duplicating it here.
--HG--
extra : convert_revision : 862ece59aa253b52b6744a0a76738d5ee19561b3
Diffstat (limited to 'src/cpu/o3')
-rw-r--r-- | src/cpu/o3/mips/cpu_impl.hh | 12 |
1 files changed, 1 insertions, 11 deletions
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 <class Impl> void MipsO3CPU<Impl>::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 |