build/X86_MESI_Two_Level/mem/protocol/L1Cache_Controller.cc
/** \brief send unblock to the L2 cache */
\brief send unblock to the L2 cache
\ brief send unblock to the L2 cache
void
L1Cache_Controller::jj_sendExclusiveUnblock(L1Cache_TBE*& m_tbe_ptr, L1Cache_Entry*& m_cache_entry_ptr, Addr addr, int core_id)
{
    DPRINTF(RubyGenerated, "executing jj_sendExclusiveUnblock\n");
    try {
       {
    std::shared_ptr<ResponseMsg> out_msg = std::make_shared<ResponseMsg>(clockEdge());
    (*out_msg).m_addr = addr;
    (*out_msg).m_Type = CoherenceResponseType_EXCLUSIVE_UNBLOCK;
    (*out_msg).m_Sender = m_machineID;
    (((*out_msg).m_Destination).add((mapAddressToRange(addr, MachineType_L2Cache, (*m_l2_select_low_bit_ptr), m_l2_select_num_bits, (intToID((0)))))));
    (*out_msg).m_MessageSize = MessageSizeType_Response_Control;
    DPRINTF(RubySlicc, "MESI_Two_Level-L1cache.sm:846: %#x\n", addr);
    ((*m_unblockFromL1Cache_ptr)).enqueue(out_msg, clockEdge(), cyclesToTicks(Cycles(m_to_l2_latency)));
}
    } catch (const RejectException & e) {
       fatal("Error in action L1Cache:jj_sendExclusiveUnblock: "
             "executed a peek statement with the wrong message "
             "type specified. ");
    }
}
void L1Cache_Controller :: jj_sendExclusiveUnblock ( L1Cache_TBE * & m_tbe_ptr , L1Cache_Entry * & m_cache_entry_ptr , Addr addr , int core_id ) { DPRINTF ( RubyGenerated , " \n " ) ; try { { std :: shared_ptr < ResponseMsg > out_msg = std :: make_shared < ResponseMsg > ( clockEdge ( ) ) ; ( * out_msg ) . m_addr = addr ; ( * out_msg ) . m_Type = CoherenceResponseType_EXCLUSIVE_UNBLOCK ; ( * out_msg ) . m_Sender = m_machineID ; ( ( ( * out_msg ) . m_Destination ) . add ( ( mapAddressToRange ( addr , MachineType_L2Cache , ( * m_l2_select_low_bit_ptr ) , m_l2_select_num_bits , ( intToID ( ( 0 ) ) ) ) ) ) ) ; ( * out_msg ) . m_MessageSize = MessageSizeType_Response_Control ; DPRINTF ( RubySlicc , " \n " , addr ) ; ( ( * m_unblockFromL1Cache_ptr ) ) . enqueue ( out_msg , clockEdge ( ) , cyclesToTicks ( Cycles ( m_to_l2_latency ) ) ) ; } } catch ( const RejectException & e ) { fatal ( " " " " " " ) ; } }
\brief send unblock to the L2 cache
\ brief send unblock to the L2 cache
//fanyao added core_id