build/X86_MESI_Two_Level/mem/protocol/L1Cache_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
L1Cache_Event
string_to_L1Cache_Event(const string& str)
{
    if (str == "Load") {
        return L1Cache_Event_Load;
    } else if (str == "Ifetch") {
        return L1Cache_Event_Ifetch;
    } else if (str == "Store") {
        return L1Cache_Event_Store;
    } else if (str == "Inv") {
        return L1Cache_Event_Inv;
    } else if (str == "EVI_NOTI") {
        return L1Cache_Event_EVI_NOTI;
    } else if (str == "L1_Replacement") {
        return L1Cache_Event_L1_Replacement;
    } else if (str == "Fwd_GETX") {
        return L1Cache_Event_Fwd_GETX;
    } else if (str == "Fwd_GETS") {
        return L1Cache_Event_Fwd_GETS;
    } else if (str == "Fwd_GET_INSTR") {
        return L1Cache_Event_Fwd_GET_INSTR;
    } else if (str == "Data") {
        return L1Cache_Event_Data;
    } else if (str == "Data_Exclusive") {
        return L1Cache_Event_Data_Exclusive;
    } else if (str == "DataS_fromL1") {
        return L1Cache_Event_DataS_fromL1;
    } else if (str == "Data_all_Acks") {
        return L1Cache_Event_Data_all_Acks;
    } else if (str == "Ack") {
        return L1Cache_Event_Ack;
    } else if (str == "Ack_all") {
        return L1Cache_Event_Ack_all;
    } else if (str == "WB_Ack") {
        return L1Cache_Event_WB_Ack;
    } else if (str == "PF_Load") {
        return L1Cache_Event_PF_Load;
    } else if (str == "PF_Ifetch") {
        return L1Cache_Event_PF_Ifetch;
    } else if (str == "PF_Store") {
        return L1Cache_Event_PF_Store;
    } else {
        panic("Invalid string conversion for %s, type L1Cache_Event", str);
    }
}
L1Cache_Event string_to_L1Cache_Event ( const string & str ) { if ( str == " " ) { return L1Cache_Event_Load ; } else if ( str == " " ) { return L1Cache_Event_Ifetch ; } else if ( str == " " ) { return L1Cache_Event_Store ; } else if ( str == " " ) { return L1Cache_Event_Inv ; } else if ( str == " " ) { return L1Cache_Event_EVI_NOTI ; } else if ( str == " " ) { return L1Cache_Event_L1_Replacement ; } else if ( str == " " ) { return L1Cache_Event_Fwd_GETX ; } else if ( str == " " ) { return L1Cache_Event_Fwd_GETS ; } else if ( str == " " ) { return L1Cache_Event_Fwd_GET_INSTR ; } else if ( str == " " ) { return L1Cache_Event_Data ; } else if ( str == " " ) { return L1Cache_Event_Data_Exclusive ; } else if ( str == " " ) { return L1Cache_Event_DataS_fromL1 ; } else if ( str == " " ) { return L1Cache_Event_Data_all_Acks ; } else if ( str == " " ) { return L1Cache_Event_Ack ; } else if ( str == " " ) { return L1Cache_Event_Ack_all ; } else if ( str == " " ) { return L1Cache_Event_WB_Ack ; } else if ( str == " " ) { return L1Cache_Event_PF_Load ; } else if ( str == " " ) { return L1Cache_Event_PF_Ifetch ; } else if ( str == " " ) { return L1Cache_Event_PF_Store ; } else { panic ( " " , str ) ; } }
Code to convert from a string to the enumeration
Code to convert from a string to the enumeration