Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/17850
Change subject: cpu: O3 switchFreeList checking VecElems instead of
FloatRegs
......................................................................
cpu: O3 switchFreeList checking VecElems instead of FloatRegs
Vector elements should be checked instead of floats since those are the
ones mapped to the vector registers.
Change-Id: I36088ab90e63720d846fcf5b43360da105b6c736
Signed-off-by: Giacomo Travaglini <[email protected]>
---
M src/cpu/o3/rename_map.cc
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/cpu/o3/rename_map.cc b/src/cpu/o3/rename_map.cc
index 603f1ff..9d912e5 100644
--- a/src/cpu/o3/rename_map.cc
+++ b/src/cpu/o3/rename_map.cc
@@ -151,8 +151,9 @@
panic_if(freeList->hasFreeVecRegs(),
"The free list is already tracking full Vec");
panic_if(freeList->numFreeVecElems() !=
- regFile->numVecElemPhysRegs() - TheISA::NumFloatRegs,
- "The free list has lost vector register elements");
+ regFile->numVecElemPhysRegs() -
+ TheISA::NumVecRegs * TheISA::NumVecElemPerVecReg,
+ "The free list has lost vector register elements");
auto range = regFile->getRegIds(VecRegClass);
freeList->addRegs(range.first + TheISA::NumVecRegs, range.second);
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/17850
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I36088ab90e63720d846fcf5b43360da105b6c736
Gerrit-Change-Number: 17850
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev