diff options
author | Polina Dudnik <pdudnik@gmail.com> | 2009-08-21 15:52:46 -0500 |
---|---|---|
committer | Polina Dudnik <pdudnik@gmail.com> | 2009-08-21 15:52:46 -0500 |
commit | a4fc1bad94f028111dcf36ac53c42e5dab79605d (patch) | |
tree | 5573cc6c1b9472dd6f21e513de785ab066a2ff2d /src/mem/slicc | |
parent | c438b2e431066d9324238e1c678ef68a3b721f33 (diff) | |
download | gem5-a4fc1bad94f028111dcf36ac53c42e5dab79605d.tar.xz |
[mq]: first_patch
Diffstat (limited to 'src/mem/slicc')
-rw-r--r-- | src/mem/slicc/symbols/StateMachine.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mem/slicc/symbols/StateMachine.cc b/src/mem/slicc/symbols/StateMachine.cc index 0a3d4a85d..86f92b692 100644 --- a/src/mem/slicc/symbols/StateMachine.cc +++ b/src/mem/slicc/symbols/StateMachine.cc @@ -862,7 +862,19 @@ void StateMachine::printCWakeup(ostream& out, string component) assert(0); \n \ } \n \ } \n \ - } \n \ + } \n \ + else { \n \ + if (servicing_atomic > 0) { \n \ + // reset \n \ + servicing_atomic = 0; \n \ + read_counter = 0; \n \ + started_receiving_writes = false; \n \ + locked_read_request1 = Address(-1); \n \ + locked_read_request2 = Address(-1); \n \ + locked_read_request3 = Address(-1); \n \ + locked_read_request4 = Address(-1); \n \ + } \n \ + } \n \ "; output.insert(pos, atomics_string); /*string foo = "// Cannot do anything with this transition, go check next doable transition (mostly likely of next port)\n"; |