summaryrefslogtreecommitdiff
path: root/src/cpu/o3
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-12-06 11:38:39 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-12-06 11:38:39 -0500
commit07a4e2cd36c35ab7b6be356d9bcf3b58b5ef6794 (patch)
tree1360dbf14801eb7faa90126405b9b0090cebac79 /src/cpu/o3
parentef942ceecba7ca1affee5545ba9004d32d1e8536 (diff)
downloadgem5-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.hh12
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