cpu-o3: Remove obsolete getRegIds and getTrueId

These have been obsolete since
https://gem5-review.googlesource.com/c/public/gem5/+/49147, hence
removing.

Change-Id: I06f6c3058f652907d996b9e6267888e2d991622a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/64332
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Sascha Bischoff
2022-08-09 10:47:28 +01:00
committed by Giacomo Travaglini
parent 39bbd9c05e
commit 41b5276c1c
2 changed files with 0 additions and 56 deletions

View File

@@ -175,47 +175,5 @@ PhysRegFile::initFreeList(UnifiedFreeList *freeList)
freeList->addRegs(ccRegIds.begin(), ccRegIds.end());
}
PhysRegFile::IdRange
PhysRegFile::getRegIds(RegClassType cls)
{
switch (cls)
{
case IntRegClass:
return std::make_pair(intRegIds.begin(), intRegIds.end());
case FloatRegClass:
return std::make_pair(floatRegIds.begin(), floatRegIds.end());
case VecRegClass:
return std::make_pair(vecRegIds.begin(), vecRegIds.end());
case VecElemClass:
return std::make_pair(vecElemIds.begin(), vecElemIds.end());
case VecPredRegClass:
return std::make_pair(vecPredRegIds.begin(), vecPredRegIds.end());
case CCRegClass:
return std::make_pair(ccRegIds.begin(), ccRegIds.end());
case MiscRegClass:
return std::make_pair(miscRegIds.begin(), miscRegIds.end());
case InvalidRegClass:
panic("Tried to get register IDs for the invalid class.");
}
/* There is no way to make an empty iterator */
return std::make_pair(PhysIds::iterator(),
PhysIds::iterator());
}
PhysRegIdPtr
PhysRegFile::getTrueId(PhysRegIdPtr reg)
{
switch (reg->classValue()) {
case VecRegClass:
return &vecRegIds[reg->index()];
case VecElemClass:
return &vecElemIds[reg->index()];
default:
panic_if(!reg->is(VecElemClass),
"Trying to get the register of a %s register", reg->className());
}
return nullptr;
}
} // namespace o3
} // namespace gem5

View File

@@ -309,20 +309,6 @@ class PhysRegFile
panic("Unrecognized register class type %d.", type);
}
}
/**
* Get the PhysRegIds of the elems of all vector registers.
* Auxiliary function to transition from Full vector mode to Elem mode
* and to initialise the rename map.
*/
IdRange getRegIds(RegClassType cls);
/**
* Get the true physical register id.
* As many parts work with PhysRegIdPtr, we need to be able to produce
* the pointer out of just class and register idx.
*/
PhysRegIdPtr getTrueId(PhysRegIdPtr reg);
};
} // namespace o3