build/X86_MESI_Two_Level/mem/protocol/L2Cache_Controller.cc
/** \brief Allocate TBE for request */
\brief Allocate TBE for request
\ brief Allocate TBE for request
void
L2Cache_Controller::i_allocateTBE(L2Cache_TBE*& m_tbe_ptr, L2Cache_Entry*& m_cache_entry_ptr, Addr addr, int core_id)
{
    DPRINTF(RubyGenerated, "executing i_allocateTBE\n");
    try {
       #ifndef NDEBUG
if (!((m_cache_entry_ptr != NULL))) {
    panic("Runtime Error at MESI_Two_Level-L2cache.sm:660: %s.\n", "assert failure");
}
#endif
;
(((*m_TBEs_ptr)).allocate(addr));
set_tbe(m_tbe_ptr, (((*m_TBEs_ptr)).lookup(addr)));;
(((*m_tbe_ptr).m_L1_GetS_IDs).clear());
(*m_tbe_ptr).m_DataBlk = (*m_cache_entry_ptr).m_DataBlk;
(*m_tbe_ptr).m_Dirty = (*m_cache_entry_ptr).m_Dirty;
(*m_tbe_ptr).m_pendingAcks = (((*m_cache_entry_ptr).m_Sharers).count());
    } catch (const RejectException & e) {
       fatal("Error in action L2Cache:i_allocateTBE: "
             "executed a peek statement with the wrong message "
             "type specified. ");
    }
}
void L2Cache_Controller :: i_allocateTBE ( L2Cache_TBE * & m_tbe_ptr , L2Cache_Entry * & m_cache_entry_ptr , Addr addr , int core_id ) { DPRINTF ( RubyGenerated , " \n " ) ; try { #ifndef NDEBUG if ( ! ( ( m_cache_entry_ptr != NULL ) ) ) { panic ( " \n " , " " ) ; } #endif ; ( ( ( * m_TBEs_ptr ) ) . allocate ( addr ) ) ; set_tbe ( m_tbe_ptr , ( ( ( * m_TBEs_ptr ) ) . lookup ( addr ) ) ) ; ; ( ( ( * m_tbe_ptr ) . m_L1_GetS_IDs ) . clear ( ) ) ; ( * m_tbe_ptr ) . m_DataBlk = ( * m_cache_entry_ptr ) . m_DataBlk ; ( * m_tbe_ptr ) . m_Dirty = ( * m_cache_entry_ptr ) . m_Dirty ; ( * m_tbe_ptr ) . m_pendingAcks = ( ( ( * m_cache_entry_ptr ) . m_Sharers ) . count ( ) ) ; } catch ( const RejectException & e ) { fatal ( " " " " " " ) ; } }
\brief Allocate TBE for request
\ brief Allocate TBE for request
//fanyao added core_id