diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2012-07-12 08:39:18 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2012-07-12 08:39:18 -0500 |
commit | ce4e9a9a50e9c80a132de881e486a4f9b5561fc0 (patch) | |
tree | 68d8b6ec65084145153c0091fe1b2a976328100b /src/mem/protocol | |
parent | 8c18f6da9ecb38b571e88318a28ac4effbc97b5e (diff) | |
download | gem5-ce4e9a9a50e9c80a132de881e486a4f9b5561fc0.tar.xz |
Ruby: remove some unused stuff from SLICC files
Diffstat (limited to 'src/mem/protocol')
-rw-r--r-- | src/mem/protocol/RubySlicc_Defines.sm | 6 | ||||
-rw-r--r-- | src/mem/protocol/RubySlicc_Exports.sm | 53 | ||||
-rw-r--r-- | src/mem/protocol/RubySlicc_MemControl.sm | 3 | ||||
-rw-r--r-- | src/mem/protocol/RubySlicc_Profiler.sm | 14 | ||||
-rw-r--r-- | src/mem/protocol/RubySlicc_Util.sm | 9 |
5 files changed, 5 insertions, 80 deletions
diff --git a/src/mem/protocol/RubySlicc_Defines.sm b/src/mem/protocol/RubySlicc_Defines.sm index 9bafebf10..011cb7664 100644 --- a/src/mem/protocol/RubySlicc_Defines.sm +++ b/src/mem/protocol/RubySlicc_Defines.sm @@ -28,7 +28,7 @@ */ // Hack, no node object since base class has them -NodeID id, no_chip_object="yes", no_vector="yes", abstract_chip_ptr="true"; -NodeID version, no_chip_object="yes", no_vector="yes", abstract_chip_ptr="true"; -MachineID machineID, no_chip_object="yes", no_vector="yes", abstract_chip_ptr="true"; +NodeID id; +NodeID version; +MachineID machineID; diff --git a/src/mem/protocol/RubySlicc_Exports.sm b/src/mem/protocol/RubySlicc_Exports.sm index 92739385b..b42f9c3a9 100644 --- a/src/mem/protocol/RubySlicc_Exports.sm +++ b/src/mem/protocol/RubySlicc_Exports.sm @@ -1,6 +1,6 @@ - /* - * Copyright (c) 1999-2005 Mark D. Hill and David A. Wood + * Copyright (c) 1999-2012 Mark D. Hill and David A. Wood + * Copyright (c) 2011 Advanced Micro Devices, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -307,55 +307,6 @@ enumeration(MaskPredictorTraining, "MaskPredictorTraining_Undefined", desc="..." Both, desc="Both"; } -// Network Topologies -enumeration(TopologyType, desc="...") { - CROSSBAR, desc="One node per chip, single switch crossbar"; - HIERARCHICAL_SWITCH, desc="One node per chip, totally ordered hierarchical tree switched network"; - TORUS_2D, desc="One node per chip, 2D torus"; - PT_TO_PT, desc="One node per chip, Point to Point Network"; - FILE_SPECIFIED, desc="described by the file NETWORK_FILE"; -} - -// DNUCA AllocationStrategy -enumeration(AllocationStrategy, desc="...") { - InMiddle, desc=""; - InInvCorners, desc=""; - InSharedSides, desc=""; - StaticDist, desc=""; - RandomBank, desc=""; - FrequencyBank, desc=""; - FrequencyBlock, desc=""; - LRUBlock, desc=""; -} - -// DNUCA SearchMechanism -enumeration(SearchMechanism, desc="...") { - Perfect, desc=""; - PartialTag, desc=""; - BloomFilter, desc=""; - Random, desc=""; - None, desc=""; -} - -// DNUCA link type -enumeration(LinkType, desc="...") { - RC_1500UM, desc=""; - RC_2500UM, desc=""; - TL_9000UM, desc=""; - TL_11000UM, desc=""; - TL_13000UM, desc=""; - NO_ENERGY, desc=""; - NULL, desc=""; -} - -// transient request type -enumeration(TransientRequestType, desc="...", default="TransientRequestType_Undefined") { - Undefined, desc=""; - OffChip, desc=""; - OnChip, desc=""; - LocalTransient, desc=""; -} - // Request Status enumeration(RequestStatus, desc="...", default="RequestStatus_NULL") { Ready, desc="The sequencer is ready and the request does not alias"; diff --git a/src/mem/protocol/RubySlicc_MemControl.sm b/src/mem/protocol/RubySlicc_MemControl.sm index a51bf09d4..66bb37bca 100644 --- a/src/mem/protocol/RubySlicc_MemControl.sm +++ b/src/mem/protocol/RubySlicc_MemControl.sm @@ -61,7 +61,4 @@ structure(MemoryMsg, desc="...", interface="Message") { PrefetchBit Prefetch, desc="Is this a prefetch request"; bool ReadX, desc="Exclusive"; int Acks, desc="How many acks to expect"; - - } - diff --git a/src/mem/protocol/RubySlicc_Profiler.sm b/src/mem/protocol/RubySlicc_Profiler.sm index 773bf0025..50fe41fe5 100644 --- a/src/mem/protocol/RubySlicc_Profiler.sm +++ b/src/mem/protocol/RubySlicc_Profiler.sm @@ -29,16 +29,9 @@ // Profiler function -void profileStore(NodeID node, bool needCLB); -void profileCacheCLBsize(int size, int numStaleI); -void profileMemoryCLBsize(int size, int numStaleI); - // used by 2level exclusive cache protocols void profile_miss(RubyRequest msg); -// used by non-fast path protocols -void profile_L1Cache_miss(RubyRequest msg, NodeID l1cacheID); - // used by CMP protocols void profile_request(std::string L1CacheStateStr, std::string L2CacheStateStr, std::string directoryStateStr, std::string requestTypeStr); @@ -55,10 +48,3 @@ void profile_average_latency_estimate(int latency); // profile the total message delay of a message across a virtual network void profileMsgDelay(int virtualNetwork, int delayCycles); - -// used by transactional-memory protocols -void profile_transaction(int numStores); -void profile_trans_wb(); -void profileOverflow(Address addr, MachineID mach); - - diff --git a/src/mem/protocol/RubySlicc_Util.sm b/src/mem/protocol/RubySlicc_Util.sm index 92f3f14e8..e5ef7ca8d 100644 --- a/src/mem/protocol/RubySlicc_Util.sm +++ b/src/mem/protocol/RubySlicc_Util.sm @@ -36,22 +36,13 @@ Time get_time(); Time zero_time(); NodeID intToID(int nodenum); int IDToInt(NodeID id); -int addressToInt(Address addr); -bool multicast_retry(); -int numberOfNodes(); -int numberOfL1CachePerChip(); -int getAddThenMod(int addend1, int addend2, int modulus); int time_to_int(Time time); Time getTimeModInt(Time time, int modulus); Time getTimePlusInt(Time addend1, int addend2); Time getTimeMinusTime(Time t1, Time t2); -Time getPreviousDelayedCycles(Time t1, Time t2); void procProfileCoherenceRequest(NodeID node, bool needCLB); void dirProfileCoherenceRequest(NodeID node, bool needCLB); -bool isPerfectProtocol(); -bool L1trainsPrefetcher(); int max_tokens(); -bool distributedPersistentEnabled(); Address setOffset(Address addr, int offset); Address makeLineAddress(Address addr); int addressOffset(Address addr); |