build/X86_MESI_Two_Level/mem/protocol/L1Cache_Event.cc
// Code to convert state to a string
Code to convert state to a string
Code to convert state to a string
string
L1Cache_Event_to_string(const L1Cache_Event& obj)
{
    switch(obj) {
      case L1Cache_Event_Load:
        return "Load";
      case L1Cache_Event_Ifetch:
        return "Ifetch";
      case L1Cache_Event_Store:
        return "Store";
      case L1Cache_Event_Inv:
        return "Inv";
      case L1Cache_Event_EVI_NOTI:
        return "EVI_NOTI";
      case L1Cache_Event_L1_Replacement:
        return "L1_Replacement";
      case L1Cache_Event_Fwd_GETX:
        return "Fwd_GETX";
      case L1Cache_Event_Fwd_GETS:
        return "Fwd_GETS";
      case L1Cache_Event_Fwd_GET_INSTR:
        return "Fwd_GET_INSTR";
      case L1Cache_Event_Data:
        return "Data";
      case L1Cache_Event_Data_Exclusive:
        return "Data_Exclusive";
      case L1Cache_Event_DataS_fromL1:
        return "DataS_fromL1";
      case L1Cache_Event_Data_all_Acks:
        return "Data_all_Acks";
      case L1Cache_Event_Ack:
        return "Ack";
      case L1Cache_Event_Ack_all:
        return "Ack_all";
      case L1Cache_Event_WB_Ack:
        return "WB_Ack";
      case L1Cache_Event_PF_Load:
        return "PF_Load";
      case L1Cache_Event_PF_Ifetch:
        return "PF_Ifetch";
      case L1Cache_Event_PF_Store:
        return "PF_Store";
      default:
        panic("Invalid range for type L1Cache_Event");
    }
}
string L1Cache_Event_to_string ( const L1Cache_Event & obj ) { switch ( obj ) { case L1Cache_Event_Load : return " " ; case L1Cache_Event_Ifetch : return " " ; case L1Cache_Event_Store : return " " ; case L1Cache_Event_Inv : return " " ; case L1Cache_Event_EVI_NOTI : return " " ; case L1Cache_Event_L1_Replacement : return " " ; case L1Cache_Event_Fwd_GETX : return " " ; case L1Cache_Event_Fwd_GETS : return " " ; case L1Cache_Event_Fwd_GET_INSTR : return " " ; case L1Cache_Event_Data : return " " ; case L1Cache_Event_Data_Exclusive : return " " ; case L1Cache_Event_DataS_fromL1 : return " " ; case L1Cache_Event_Data_all_Acks : return " " ; case L1Cache_Event_Ack : return " " ; case L1Cache_Event_Ack_all : return " " ; case L1Cache_Event_WB_Ack : return " " ; case L1Cache_Event_PF_Load : return " " ; case L1Cache_Event_PF_Ifetch : return " " ; case L1Cache_Event_PF_Store : return " " ; default : panic ( " " ) ; } }
Code to convert state to a string
Code to convert state to a string