summaryrefslogtreecommitdiff
path: root/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-07-12 08:39:18 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-07-12 08:39:18 -0500
commitce4e9a9a50e9c80a132de881e486a4f9b5561fc0 (patch)
tree68d8b6ec65084145153c0091fe1b2a976328100b /src/mem/ruby/slicc_interface/RubySlicc_Util.hh
parent8c18f6da9ecb38b571e88318a28ac4effbc97b5e (diff)
downloadgem5-ce4e9a9a50e9c80a132de881e486a4f9b5561fc0.tar.xz
Ruby: remove some unused stuff from SLICC files
Diffstat (limited to 'src/mem/ruby/slicc_interface/RubySlicc_Util.hh')
-rw-r--r--src/mem/ruby/slicc_interface/RubySlicc_Util.hh48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
index d535ba7cd..b8fd46dd0 100644
--- a/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
+++ b/src/mem/ruby/slicc_interface/RubySlicc_Util.hh
@@ -35,37 +35,17 @@
#include <cassert>
-#include "mem/protocol/AccessType.hh"
-#include "mem/protocol/GenericRequestType.hh"
-#include "mem/protocol/MachineType.hh"
-#include "mem/protocol/MessageSizeType.hh"
-#include "mem/protocol/PrefetchBit.hh"
#include "mem/ruby/common/Address.hh"
#include "mem/ruby/common/Global.hh"
-#include "mem/ruby/network/Network.hh"
#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
-#include "mem/ruby/system/MachineID.hh"
#include "mem/ruby/system/System.hh"
-class Set;
-class NetDest;
-
inline int
random(int n)
{
return random() % n;
}
-inline bool
-multicast_retry()
-{
- if (RubySystem::getRandomization()) {
- return (random() & 0x1);
- } else {
- return true;
- }
-}
-
inline Time
get_time()
{
@@ -92,24 +72,6 @@ IDToInt(NodeID id)
return nodenum;
}
-inline int
-addressToInt(Address addr)
-{
- return (int)addr.getLineAddress();
-}
-
-inline bool
-long_enough_ago(Time event)
-{
- return ((get_time() - event) > 200);
-}
-
-inline int
-getAddThenMod(int addend1, int addend2, int modulus)
-{
- return (addend1 + addend2) % modulus;
-}
-
inline Time
getTimeModInt(Time time, int modulus)
{
@@ -129,16 +91,6 @@ getTimeMinusTime(Time t1, Time t2)
return t1 - t2;
}
-inline Time
-getPreviousDelayedCycles(Time t1, Time t2)
-{
- if (RubySystem::getRandomization()) { // when randomizing delayed
- return 0;
- } else {
- return getTimeMinusTime(t1, t2);
- }
-}
-
// Return type for time_to_int is "Time" and not "int" so we get a
// 64-bit integer
inline Time