Reset the atomics flags if RMW_Read is not followed by a RMW_Read or RMW_Write
This commit is contained in:
parent
95da6dc84c
commit
a02dbd61f9
1 changed files with 13 additions and 1 deletions
|
@ -862,6 +862,18 @@ void StateMachine::printCWakeup(ostream& out, string component)
|
|||
assert(0); \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);
|
||||
|
|
Loading…
Reference in a new issue