build/X86_MESI_Two_Level/mem/protocol/Directory_Controller.cc
/** \brief Queue off-chip writeback request */
\brief Queue off-chip writeback request
\ brief Queue off - chip writeback request
void
Directory_Controller::qw_queueMemoryWBRequest_partial(Directory_TBE*& m_tbe_ptr, Addr addr)
{
    DPRINTF(RubyGenerated, "executing qw_queueMemoryWBRequest_partial\n");
    {
    const RequestMsg* in_msg_ptr M5_VAR_USED;
    in_msg_ptr = dynamic_cast<const RequestMsg *>(((*m_requestToDir_ptr)).peek());
    if (in_msg_ptr == NULL) {
        throw RejectException();
    }
(queueMemoryWritePartial(m_machineID, addr, m_to_mem_ctrl_latency, ((*in_msg_ptr)).m_DataBlk, ((*in_msg_ptr)).m_Len));
}
}
void Directory_Controller :: qw_queueMemoryWBRequest_partial ( Directory_TBE * & m_tbe_ptr , Addr addr ) { DPRINTF ( RubyGenerated , " \n " ) ; { const RequestMsg * in_msg_ptr M5_VAR_USED ; in_msg_ptr = dynamic_cast < const RequestMsg * > ( ( ( * m_requestToDir_ptr ) ) . peek ( ) ) ; if ( in_msg_ptr == NULL ) { throw RejectException ( ) ; } ( queueMemoryWritePartial ( m_machineID , addr , m_to_mem_ctrl_latency , ( ( * in_msg_ptr ) ) . m_DataBlk , ( ( * in_msg_ptr ) ) . m_Len ) ) ; } }
\brief Queue off-chip writeback request
\ brief Queue off - chip writeback request
// Declare message // If the cast fails, this is the wrong inport (wrong message type). // Throw an exception, and the caller will decide to either try a // different inport or punt.