summaryrefslogtreecommitdiff
path: root/src/cpu/o3/rob.hh
diff options
context:
space:
mode:
authorFaissal Sleiman <Faissal.Sleiman@arm.com>2013-10-31 13:41:13 -0500
committerFaissal Sleiman <Faissal.Sleiman@arm.com>2013-10-31 13:41:13 -0500
commit397dc784fd44860cf9f58ebf453769e5e2bd830b (patch)
treef0b648277015ecf7d5ce0f5d06f2b11379c5e225 /src/cpu/o3/rob.hh
parent15938e049267d87e4272aa863741e56eba883117 (diff)
downloadgem5-397dc784fd44860cf9f58ebf453769e5e2bd830b.tar.xz
cpu: Construct ROB with cpu params struct instead of each variable
Most other structures/stages get passed the cpu params struct.
Diffstat (limited to 'src/cpu/o3/rob.hh')
-rw-r--r--src/cpu/o3/rob.hh14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/cpu/o3/rob.hh b/src/cpu/o3/rob.hh
index 171781ce2..b5651de11 100644
--- a/src/cpu/o3/rob.hh
+++ b/src/cpu/o3/rob.hh
@@ -52,6 +52,8 @@
#include "base/types.hh"
#include "config/the_isa.hh"
+struct DerivO3CPUParams;
+
/**
* ROB class. The ROB is largely what drives squashing.
*/
@@ -91,16 +93,10 @@ class ROB
public:
/** ROB constructor.
- * @param _numEntries Number of entries in ROB.
- * @param _squashWidth Number of instructions that can be squashed in a
- * single cycle.
- * @param _smtROBPolicy ROB Partitioning Scheme for SMT.
- * @param _smtROBThreshold Max Resources(by %) a thread can have in the ROB.
- * @param _numThreads The number of active threads.
+ * @param _cpu The cpu object pointer.
+ * @param params The cpu params including several ROB-specific parameters.
*/
- ROB(O3CPU *_cpu, unsigned _numEntries, unsigned _squashWidth,
- std::string smtROBPolicy, unsigned _smtROBThreshold,
- ThreadID _numThreads);
+ ROB(O3CPU *_cpu, DerivO3CPUParams *params);
std::string name() const;