summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/garnet/fixed-pipeline/InputUnit_d.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-02-20 17:28:01 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2014-02-20 17:28:01 -0600
commitf8f8b7e5c2382dac32a8109c56f1aaad7e6a5fd7 (patch)
treeebc3d4f4de1ff44452ff1d2a9040cd28c532977f /src/mem/ruby/network/garnet/fixed-pipeline/InputUnit_d.hh
parent896654746adeebc264150692a9dda4e3fa48a6a3 (diff)
downloadgem5-f8f8b7e5c2382dac32a8109c56f1aaad7e6a5fd7.tar.xz
ruby: network: garnet: fixed: removes next cycle functions
At several places, there are functions that take a cycle value as input and performs some computation. Along with each such function, another function was being defined that simply added one more cycle to input and computed the same function. This patch removes this second copy of the function. Places where these functions were being called have been updated to use the original function with argument being current cycle + 1.
Diffstat (limited to 'src/mem/ruby/network/garnet/fixed-pipeline/InputUnit_d.hh')
-rw-r--r--src/mem/ruby/network/garnet/fixed-pipeline/InputUnit_d.hh11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/InputUnit_d.hh b/src/mem/ruby/network/garnet/fixed-pipeline/InputUnit_d.hh
index 2c37996b3..836613d02 100644
--- a/src/mem/ruby/network/garnet/fixed-pipeline/InputUnit_d.hh
+++ b/src/mem/ruby/network/garnet/fixed-pipeline/InputUnit_d.hh
@@ -125,16 +125,9 @@ class InputUnit_d : public Consumer
}
inline bool
- need_stage(int vc, VC_state_type state, flit_stage stage, Cycles curTime)
+ need_stage(int vc, VC_state_type state, flit_stage stage, Cycles cTime)
{
- return m_vcs[vc]->need_stage(state, stage, curTime);
- }
-
- inline bool
- need_stage_nextcycle(int vc, VC_state_type state, flit_stage stage,
- Cycles curTime)
- {
- return m_vcs[vc]->need_stage_nextcycle(state, stage, curTime);
+ return m_vcs[vc]->need_stage(state, stage, cTime);
}
inline bool