diff options
Diffstat (limited to 'src/cpu/o3/scoreboard.hh')
-rw-r--r-- | src/cpu/o3/scoreboard.hh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cpu/o3/scoreboard.hh b/src/cpu/o3/scoreboard.hh index eefff1d8b..b1c2bd026 100644 --- a/src/cpu/o3/scoreboard.hh +++ b/src/cpu/o3/scoreboard.hh @@ -111,6 +111,21 @@ class Scoreboard /** The logical index of the zero register. */ int zeroRegIdx; + + int currentSize; + + void + resize(int newSize) + { + currentSize = newSize; + regScoreBoard.resize(newSize); + } + + bool + indexInBounds(int idx) + { + return idx < currentSize; + } }; #endif |