From 43d833246fcfe092a0c08dde1fdf7e3d409d1af9 Mon Sep 17 00:00:00 2001 From: Nathanael Premillieu Date: Wed, 5 Apr 2017 12:46:06 -0500 Subject: cpu: Physical register structural + flat indexing Mimic the changes done on the architectural register indexes on the physical register indexes. This is specific to the O3 model. The structure, called PhysRegId, contains a register class, a register index and a flat register index. The flat register index is kept because it is useful in some cases where the type of register is not important (dependency graph and scoreboard for example). Instead of directly using the structure, most of the code is working with a const PhysRegId* (typedef to PhysRegIdPtr). The actual PhysRegId objects are stored in the regFile. Change-Id: Ic879a3cc608aa2f34e2168280faac1846de77667 Reviewed-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/2701 Reviewed-by: Anthony Gutierrez Maintainer: Andreas Sandberg --- src/cpu/o3/scoreboard.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/cpu/o3/scoreboard.cc') diff --git a/src/cpu/o3/scoreboard.cc b/src/cpu/o3/scoreboard.cc index 2b2b091af..e15f9c769 100644 --- a/src/cpu/o3/scoreboard.cc +++ b/src/cpu/o3/scoreboard.cc @@ -36,12 +36,9 @@ #include "debug/Scoreboard.hh" Scoreboard::Scoreboard(const std::string &_my_name, - unsigned _numPhysicalRegs, unsigned _numMiscRegs, - PhysRegIndex _zeroRegIdx, PhysRegIndex _fpZeroRegIdx) + unsigned _numPhysicalRegs) : _name(_my_name), regScoreBoard(_numPhysicalRegs, true), - numPhysRegs(_numPhysicalRegs), - numTotalRegs(_numPhysicalRegs + _numMiscRegs), - zeroRegIdx(_zeroRegIdx), fpZeroRegIdx(_fpZeroRegIdx) + numPhysRegs(_numPhysicalRegs) { } -- cgit v1.2.3