diff options
Diffstat (limited to 'src/mem/ruby/slicc_interface')
-rw-r--r-- | src/mem/ruby/slicc_interface/AbstractController.cc | 2 | ||||
-rw-r--r-- | src/mem/ruby/slicc_interface/AbstractController.hh | 2 | ||||
-rw-r--r-- | src/mem/ruby/slicc_interface/RubySlicc_Util.hh | 34 |
3 files changed, 3 insertions, 35 deletions
diff --git a/src/mem/ruby/slicc_interface/AbstractController.cc b/src/mem/ruby/slicc_interface/AbstractController.cc index bcd09796a..9a0ee2b2b 100644 --- a/src/mem/ruby/slicc_interface/AbstractController.cc +++ b/src/mem/ruby/slicc_interface/AbstractController.cc @@ -73,7 +73,7 @@ AbstractController::profileRequest(const std::string &request) } void -AbstractController::profileMsgDelay(uint32_t virtualNetwork, Time delay) +AbstractController::profileMsgDelay(uint32_t virtualNetwork, Cycles delay) { assert(virtualNetwork < m_delayVCHistogram.size()); m_delayHistogram.add(delay); diff --git a/src/mem/ruby/slicc_interface/AbstractController.hh b/src/mem/ruby/slicc_interface/AbstractController.hh index 44981a7e8..ba0c4b683 100644 --- a/src/mem/ruby/slicc_interface/AbstractController.hh +++ b/src/mem/ruby/slicc_interface/AbstractController.hh @@ -101,7 +101,7 @@ class AbstractController : public ClockedObject, public Consumer //! Profiles original cache requests including PUTs void profileRequest(const std::string &request); //! Profiles the delay associated with messages. - void profileMsgDelay(uint32_t virtualNetwork, Time delay); + void profileMsgDelay(uint32_t virtualNetwork, Cycles delay); protected: int m_transitions_per_cycle; diff --git a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh index 622efd04c..75048136f 100644 --- a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh +++ b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh @@ -46,12 +46,7 @@ random(int n) return random() % n; } -inline Time -zero_time() -{ - return 0; -} - +inline Cycles zero_time() { return Cycles(0); } inline Cycles TimeToCycles(Time t) { return Cycles(t); } inline NodeID @@ -68,33 +63,6 @@ IDToInt(NodeID id) return nodenum; } -inline Time -getTimeModInt(Time time, int modulus) -{ - return time % modulus; -} - -inline Time -getTimePlusInt(Time addend1, int addend2) -{ - return (Time) addend1 + addend2; -} - -inline Time -getTimeMinusTime(Time t1, Time t2) -{ - assert(t1 >= t2); - return t1 - t2; -} - -// Return type for time_to_int is "Time" and not "int" so we get a -// 64-bit integer -inline Time -time_to_int(Time time) -{ - return time; -} - // Appends an offset to an address inline Address setOffset(Address addr, int offset) |