diff options
author | Korey Sewell <ksewell@umich.edu> | 2011-02-04 00:08:18 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2011-02-04 00:08:18 -0500 |
commit | 0c6a679359fa84060b5bc745a737073890d2fb90 (patch) | |
tree | 26590e8ce2b1e63d8f7696b3137cfbbec24158b4 /src/cpu/inorder/cpu.cc | |
parent | 8ac717ef4c22580516d54046f9c0c1048eb4da62 (diff) | |
download | gem5-0c6a679359fa84060b5bc745a737073890d2fb90.tar.xz |
inorder: stage width as a python parameter
allow the user to specify how many instructions a pipeline stage can process
on any given cycle (stageWidth...i.e.bandwidth) by setting the parameter through
the python interface rather than compile the code after changing the *.cc file.
(we always had the parameter there, but still used the static 'ThePipeline::StageWidth'
instead)
-
Since StageWidth is now dynamically defined, change the interstage communication
structure to use a vector and get rid of array and array handling index (toNextStageIndex)
since we can just make calls to the list for the same information
Diffstat (limited to 'src/cpu/inorder/cpu.cc')
-rw-r--r-- | src/cpu/inorder/cpu.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/inorder/cpu.cc b/src/cpu/inorder/cpu.cc index 5a742cb5d..ffdcae7df 100644 --- a/src/cpu/inorder/cpu.cc +++ b/src/cpu/inorder/cpu.cc @@ -174,6 +174,7 @@ InOrderCPU::InOrderCPU(Params *params) coreType("default"), _status(Idle), tickEvent(this), + stageWidth(params->stageWidth), timeBuffer(2 , 2), removeInstsThisCycle(false), activityRec(params->name, NumStages, 10, params->activity), |