diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-08-07 14:51:18 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-08-07 14:51:18 -0500 |
commit | f1b17bf1576bbc7c5786194cb9a02e3e52dbd1e6 (patch) | |
tree | d9ebf15d8fc8ce92efc88d7387749fbb538917e5 /src/mem/slicc/symbols | |
parent | e0387415988a11f30b5aac66cd5cc32f7387e08e (diff) | |
download | gem5-f1b17bf1576bbc7c5786194cb9a02e3e52dbd1e6.tar.xz |
ruby: slicc: move some code to AbstractController
Some of the code in StateMachine.py file is added to all the controllers and
is independent of the controller definition. This code is being moved to the
AbstractController class which is the parent class of all controllers.
Diffstat (limited to 'src/mem/slicc/symbols')
-rw-r--r-- | src/mem/slicc/symbols/StateMachine.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py index 1eb72972f..6d67f27ba 100644 --- a/src/mem/slicc/symbols/StateMachine.py +++ b/src/mem/slicc/symbols/StateMachine.py @@ -253,10 +253,7 @@ class $c_ident : public AbstractController static int getNumControllers(); void init(); MessageBuffer* getMandatoryQueue() const; - const int & getVersion() const; const std::string toString() const; - const std::string getName() const; - void initNetworkPtr(Network* net_ptr) { m_net_ptr = net_ptr; } void print(std::ostream& out) const; void wakeup(); @@ -265,8 +262,6 @@ class $c_ident : public AbstractController void regStats(); void collateStats(); - void blockOnQueue(Address addr, MessageBuffer* port); - void unblock(Address addr); void recordCacheTrace(int cntrl, CacheRecorder* tr); Sequencer* getSequencer() const; @@ -840,40 +835,12 @@ $c_ident::getSequencer() const return $seq_ident; } -const int & -$c_ident::getVersion() const -{ - return m_version; -} - const string $c_ident::toString() const { return "$c_ident"; } -const string -$c_ident::getName() const -{ - return m_name; -} - -void -$c_ident::blockOnQueue(Address addr, MessageBuffer* port) -{ - m_is_blocking = true; - m_block_map[addr] = port; -} - -void -$c_ident::unblock(Address addr) -{ - m_block_map.erase(addr); - if (m_block_map.size() == 0) { - m_is_blocking = false; - } -} - void $c_ident::print(ostream& out) const { |