}
}
+ action(dg_invalidate_sc, "dg",
+ desc="Invalidate store conditional as the cache lost permissions") {
+ sequencer.invalidateSC(address);
+ }
+
action(h_load_hit, "h", desc="If not prefetch, notify sequencer the load completed.") {
assert(is_valid(cache_entry));
DPRINTF(RubySlicc, "%s\n", cache_entry.DataBlk);
}
// Transitions from IM
- transition({IM, SM}, Inv, IM) {
+ transition(IM, Inv, IM) {
fi_sendInvAck;
l_popRequestQueue;
}
}
// transitions from SM
+ transition(SM, Inv, IM) {
+ fi_sendInvAck;
+ dg_invalidate_sc;
+ l_popRequestQueue;
+ }
+
transition({SM, IM, PF_SM, PF_IM}, Ack) {
q_updateAckCount;
o_popIncomingResponseQueue;
void evictionCallback(Address);
void recordRequestType(SequencerRequestType);
bool checkResourceAvailable(CacheResourceType, Address);
+ void invalidateSC(Address);
}
structure(RubyRequest, desc="...", interface="Message", external="yes") {
markRemoved();
}
+void
+Sequencer::invalidateSC(const Address& address)
+{
+ RequestTable::iterator i = m_writeRequestTable.find(address);
+ if (i != m_writeRequestTable.end()) {
+ SequencerRequest* request = i->second;
+ // The controller has lost the coherence permissions, hence the lock
+ // on the cache line maintained by the cache should be cleared.
+ if (request->m_type == RubyRequestType_Store_Conditional) {
+ m_dataCache_ptr->clearLocked(address);
+ }
+ }
+}
+
bool
Sequencer::handleLlsc(const Address& address, SequencerRequest* request)
{
(request->m_type == RubyRequestType_Locked_RMW_Write) ||
(request->m_type == RubyRequestType_FLUSH));
-
//
// For Alpha, properly handle LL, SC, and write requests with respect to
// locked cache blocks.
void markRemoved();
void removeRequest(SequencerRequest* request);
void evictionCallback(const Address& address);
+ void invalidateSC(const Address& address);
void recordRequestType(SequencerRequestType requestType);