diff options
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2019-01-10 11:17:09 +0000 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2019-01-25 12:47:58 +0000 |
commit | e7c8154479b3d0dbdc26cbb91fbccc2b9870e394 (patch) | |
tree | c61f78dc2d405f4741379c33d1c1b3cab88dc21c /src/cpu | |
parent | 4d44889635fc31886ac993a3b5260afe006bd2a3 (diff) | |
download | gem5-e7c8154479b3d0dbdc26cbb91fbccc2b9870e394.tar.xz |
cpu: Add VecElem entries in MinorCPU Scoreboard
This patch is:
* Increasing the number of bits in the Scoreboard so that
it is keeping track of VecElemClass dependencies.
* Fixing VecElemClass entry in the scoreboard table so that it
correctly uses flatIndex rather than index.
Change-Id: Ie4877e5fe410b1437447adebbe289602a443f7c0
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15597
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/minor/scoreboard.cc | 2 | ||||
-rw-r--r-- | src/cpu/minor/scoreboard.hh | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cpu/minor/scoreboard.cc b/src/cpu/minor/scoreboard.cc index c56d3b303..196d035eb 100644 --- a/src/cpu/minor/scoreboard.cc +++ b/src/cpu/minor/scoreboard.cc @@ -74,7 +74,7 @@ Scoreboard::findIndex(const RegId& reg, Index &scoreboard_index) break; case VecElemClass: scoreboard_index = TheISA::NumIntRegs + TheISA::NumCCRegs + - TheISA::NumFloatRegs + TheISA::NumVecRegs + reg.index(); + TheISA::NumFloatRegs + reg.flatIndex(); ret = true; break; case CCRegClass: diff --git a/src/cpu/minor/scoreboard.hh b/src/cpu/minor/scoreboard.hh index 9e42c2a6b..37ae8da0a 100644 --- a/src/cpu/minor/scoreboard.hh +++ b/src/cpu/minor/scoreboard.hh @@ -94,7 +94,8 @@ class Scoreboard : public Named Scoreboard(const std::string &name) : Named(name), numRegs(TheISA::NumIntRegs + TheISA::NumCCRegs + - TheISA::NumFloatRegs + TheISA::NumVecRegs), + TheISA::NumFloatRegs + + (TheISA::NumVecRegs * TheISA::NumVecElemPerVecReg)), numResults(numRegs, 0), numUnpredictableResults(numRegs, 0), fuIndices(numRegs, 0), |