summaryrefslogtreecommitdiff
path: root/src/cpu/thread_context.cc
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-07-28 01:58:04 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-07-28 01:58:04 -0500
commitaafa5c3f86ea54f5e6e88009be656aeec12eef5f (patch)
treed40f2fd8a807ddc9638f292205754f9ecf19b6ef /src/cpu/thread_context.cc
parent608641e23c7f2288810c3f23a1a63790b664f2ab (diff)
downloadgem5-aafa5c3f86ea54f5e6e88009be656aeec12eef5f.tar.xz
revert 5af8f40d8f2c
Diffstat (limited to 'src/cpu/thread_context.cc')
-rw-r--r--src/cpu/thread_context.cc30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/cpu/thread_context.cc b/src/cpu/thread_context.cc
index ce7604d3c..fe1ae69dd 100644
--- a/src/cpu/thread_context.cc
+++ b/src/cpu/thread_context.cc
@@ -88,15 +88,6 @@ ThreadContext::compare(ThreadContext *one, ThreadContext *two)
panic("CC reg idx %d doesn't match, one: %#x, two: %#x",
i, t1, t2);
}
-
- // loop through the Vector registers.
- for (int i = 0; i < TheISA::NumVectorRegs; ++i) {
- const TheISA::VectorReg &t1 = one->readVectorReg(i);
- const TheISA::VectorReg &t2 = two->readVectorReg(i);
- if (t1 != t2)
- panic("Vector reg idx %d doesn't match", i);
- }
-
if (!(one->pcState() == two->pcState()))
panic("PC state doesn't match.");
int id1 = one->cpuId();
@@ -136,16 +127,6 @@ serialize(ThreadContext &tc, CheckpointOut &cp)
SERIALIZE_ARRAY(ccRegs, NumCCRegs);
#endif
-#ifdef ISA_HAS_VECTOR_REGS
- VectorRegElement vectorRegs[NumVectorRegs * NumVectorRegElements];
- for (int i = 0; i < NumVectorRegs; ++i) {
- const VectorReg &v = tc.readVectorRegFlat(i);
- for (int j = 0; i < NumVectorRegElements; ++j)
- vectorRegs[i * NumVectorRegElements + j] = v[j];
- }
- SERIALIZE_ARRAY(vectorRegs, NumVectorRegs * NumVectorRegElements);
-#endif
-
tc.pcState().serialize(cp);
// thread_num and cpu_id are deterministic from the config
@@ -175,17 +156,6 @@ unserialize(ThreadContext &tc, CheckpointIn &cp)
tc.setCCRegFlat(i, ccRegs[i]);
#endif
-#ifdef ISA_HAS_VECTOR_REGS
- VectorRegElement vectorRegs[NumVectorRegs * NumVectorRegElements];
- UNSERIALIZE_ARRAY(vectorRegs, NumVectorRegs * NumVectorRegElements);
- for (int i = 0; i < NumVectorRegs; ++i) {
- VectorReg v;
- for (int j = 0; i < NumVectorRegElements; ++j)
- v[j] = vectorRegs[i * NumVectorRegElements + j];
- tc.setVectorRegFlat(i, v);
- }
-#endif
-
PCState pcState;
pcState.unserialize(cp);
tc.pcState(pcState);