build/X86_MESI_Two_Level/mem/protocol/L2Cache_Controller.cc
/** \brief invalidate sharers for L2 replacement */
\brief invalidate sharers for L2 replacement
\ brief invalidate sharers for L2 replacement
void
L2Cache_Controller::f_sendInvToSharers(L2Cache_TBE*& m_tbe_ptr, L2Cache_Entry*& m_cache_entry_ptr, Addr addr, int core_id)
{
    DPRINTF(RubyGenerated, "executing f_sendInvToSharers\n");
    try {
       {
    std::shared_ptr<RequestMsg> out_msg = std::make_shared<RequestMsg>(clockEdge());
    #ifndef NDEBUG
    if (!((m_cache_entry_ptr != NULL))) {
        panic("Runtime Error at MESI_Two_Level-L2cache.sm:620: %s.\n", "assert failure");
    }
    #endif
    ;
    (*out_msg).m_addr = addr;
    (*out_msg).m_Type = CoherenceRequestType_INV;
    (*out_msg).m_Requestor = m_machineID;
    (*out_msg).m_Destination = (*m_cache_entry_ptr).m_Sharers;
    (*out_msg).m_MessageSize = MessageSizeType_Request_Control;
    ((*m_L1RequestFromL2Cache_ptr)).enqueue(out_msg, clockEdge(), cyclesToTicks(Cycles(m_to_l1_latency)));
}
    } catch (const RejectException & e) {
       fatal("Error in action L2Cache:f_sendInvToSharers: "
             "executed a peek statement with the wrong message "
             "type specified. ");
    }
}
void L2Cache_Controller :: f_sendInvToSharers ( L2Cache_TBE * & m_tbe_ptr , L2Cache_Entry * & m_cache_entry_ptr , Addr addr , int core_id ) { DPRINTF ( RubyGenerated , " \n " ) ; try { { std :: shared_ptr < RequestMsg > out_msg = std :: make_shared < RequestMsg > ( clockEdge ( ) ) ; #ifndef NDEBUG if ( ! ( ( m_cache_entry_ptr != NULL ) ) ) { panic ( " \n " , " " ) ; } #endif ; ( * out_msg ) . m_addr = addr ; ( * out_msg ) . m_Type = CoherenceRequestType_INV ; ( * out_msg ) . m_Requestor = m_machineID ; ( * out_msg ) . m_Destination = ( * m_cache_entry_ptr ) . m_Sharers ; ( * out_msg ) . m_MessageSize = MessageSizeType_Request_Control ; ( ( * m_L1RequestFromL2Cache_ptr ) ) . enqueue ( out_msg , clockEdge ( ) , cyclesToTicks ( Cycles ( m_to_l1_latency ) ) ) ; } } catch ( const RejectException & e ) { fatal ( " " " " " " ) ; } }
\brief invalidate sharers for L2 replacement
\ brief invalidate sharers for L2 replacement
//fanyao added core_id