summaryrefslogtreecommitdiff
path: root/src/arch/mips
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2020-01-09 02:46:30 -0800
committerGabe Black <gabeblack@google.com>2020-01-22 07:05:44 +0000
commit11f7344cdc215e6950e54f53956e4298ed1fee2b (patch)
tree2597fb45e5e1f3ce0a07f42dfa0f1e35f9662cc5 /src/arch/mips
parent0b7d8428af6b64ea48a41254990c2c54512a695b (diff)
downloadgem5-11f7344cdc215e6950e54f53956e4298ed1fee2b.tar.xz
arch: Get rid of the unused (and mostly undefined) zeroRegisters.
Change-Id: Iadf56e4e742506af7ae4b617d2dc5a56439aa407 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24188 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch/mips')
-rw-r--r--src/arch/mips/utility.cc11
-rw-r--r--src/arch/mips/utility.hh3
2 files changed, 0 insertions, 14 deletions
diff --git a/src/arch/mips/utility.cc b/src/arch/mips/utility.cc
index 495845d7f..24c451d3e 100644
--- a/src/arch/mips/utility.cc
+++ b/src/arch/mips/utility.cc
@@ -217,17 +217,6 @@ isSnan(void *val_ptr, int size)
}
}
-template <class CPU>
-void
-zeroRegisters(CPU *cpu)
-{
- // Insure ISA semantics
- // (no longer very clean due to the change in setIntReg() in the
- // cpu model. Consider changing later.)
- cpu->thread->setIntReg(ZeroReg, 0);
- cpu->thread->setFloatReg(ZeroReg, 0);
-}
-
void
startupCPU(ThreadContext *tc, int cpuId)
{
diff --git a/src/arch/mips/utility.hh b/src/arch/mips/utility.hh
index dde386cbc..0cd066f3e 100644
--- a/src/arch/mips/utility.hh
+++ b/src/arch/mips/utility.hh
@@ -87,9 +87,6 @@ inUserMode(ThreadContext *tc)
}
}
-template <class CPU>
-void zeroRegisters(CPU *cpu);
-
////////////////////////////////////////////////////////////////////////
//
// Translation stuff