changeset c7fb413a369f in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=c7fb413a369f
description:
        Reset the atomics flags if RMW_Read is not followed by a RMW_Read or 
RMW_Write

diffstat:

1 file changed, 13 insertions(+), 1 deletion(-)
src/mem/slicc/symbols/StateMachine.cc |   14 +++++++++++++-

diffs (24 lines):

diff -r 8ea43024230b -r c7fb413a369f src/mem/slicc/symbols/StateMachine.cc
--- a/src/mem/slicc/symbols/StateMachine.cc     Fri Aug 28 15:04:55 2009 -0500
+++ b/src/mem/slicc/symbols/StateMachine.cc     Fri Aug 28 15:09:41 2009 -0500
@@ -862,7 +862,19 @@
                  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";
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to