build/X86_MESI_Two_Level/mem/protocol/L2Cache_Event.cc
// Code to convert from a string to the enumeration
Code to convert from a string to the enumeration
Code to convert from a string to the enumeration
L2Cache_Event
string_to_L2Cache_Event(const string& str)
{
    if (str == "L1_GET_INSTR") {
        return L2Cache_Event_L1_GET_INSTR;
    } else if (str == "L1_GETS") {
        return L2Cache_Event_L1_GETS;
    } else if (str == "L1_GETX") {
        return L2Cache_Event_L1_GETX;
    } else if (str == "L1_UPGRADE") {
        return L2Cache_Event_L1_UPGRADE;
    } else if (str == "L1_PUTX") {
        return L2Cache_Event_L1_PUTX;
    } else if (str == "L1_PUTX_old") {
        return L2Cache_Event_L1_PUTX_old;
    } else if (str == "L2_Replacement") {
        return L2Cache_Event_L2_Replacement;
    } else if (str == "L2_Replacement_clean") {
        return L2Cache_Event_L2_Replacement_clean;
    } else if (str == "Mem_Data") {
        return L2Cache_Event_Mem_Data;
    } else if (str == "Mem_Ack") {
        return L2Cache_Event_Mem_Ack;
    } else if (str == "WB_Data") {
        return L2Cache_Event_WB_Data;
    } else if (str == "WB_Data_clean") {
        return L2Cache_Event_WB_Data_clean;
    } else if (str == "Ack") {
        return L2Cache_Event_Ack;
    } else if (str == "Ack_all") {
        return L2Cache_Event_Ack_all;
    } else if (str == "Unblock") {
        return L2Cache_Event_Unblock;
    } else if (str == "Exclusive_Unblock") {
        return L2Cache_Event_Exclusive_Unblock;
    } else if (str == "MEM_Inv") {
        return L2Cache_Event_MEM_Inv;
    } else {
        panic("Invalid string conversion for %s, type L2Cache_Event", str);
    }
}
L2Cache_Event string_to_L2Cache_Event ( const string & str ) { if ( str == " " ) { return L2Cache_Event_L1_GET_INSTR ; } else if ( str == " " ) { return L2Cache_Event_L1_GETS ; } else if ( str == " " ) { return L2Cache_Event_L1_GETX ; } else if ( str == " " ) { return L2Cache_Event_L1_UPGRADE ; } else if ( str == " " ) { return L2Cache_Event_L1_PUTX ; } else if ( str == " " ) { return L2Cache_Event_L1_PUTX_old ; } else if ( str == " " ) { return L2Cache_Event_L2_Replacement ; } else if ( str == " " ) { return L2Cache_Event_L2_Replacement_clean ; } else if ( str == " " ) { return L2Cache_Event_Mem_Data ; } else if ( str == " " ) { return L2Cache_Event_Mem_Ack ; } else if ( str == " " ) { return L2Cache_Event_WB_Data ; } else if ( str == " " ) { return L2Cache_Event_WB_Data_clean ; } else if ( str == " " ) { return L2Cache_Event_Ack ; } else if ( str == " " ) { return L2Cache_Event_Ack_all ; } else if ( str == " " ) { return L2Cache_Event_Unblock ; } else if ( str == " " ) { return L2Cache_Event_Exclusive_Unblock ; } else if ( str == " " ) { return L2Cache_Event_MEM_Inv ; } else { panic ( " " , str ) ; } }
Code to convert from a string to the enumeration
Code to convert from a string to the enumeration