build/X86_MESI_Two_Level/mem/protocol/L2Cache_Event.cc
// Code to convert state to a string
Code to convert state to a string
Code to convert state to a string
string
L2Cache_Event_to_string(const L2Cache_Event& obj)
{
    switch(obj) {
      case L2Cache_Event_L1_GET_INSTR:
        return "L1_GET_INSTR";
      case L2Cache_Event_L1_GETS:
        return "L1_GETS";
      case L2Cache_Event_L1_GETX:
        return "L1_GETX";
      case L2Cache_Event_L1_UPGRADE:
        return "L1_UPGRADE";
      case L2Cache_Event_L1_PUTX:
        return "L1_PUTX";
      case L2Cache_Event_L1_PUTX_old:
        return "L1_PUTX_old";
      case L2Cache_Event_L2_Replacement:
        return "L2_Replacement";
      case L2Cache_Event_L2_Replacement_clean:
        return "L2_Replacement_clean";
      case L2Cache_Event_Mem_Data:
        return "Mem_Data";
      case L2Cache_Event_Mem_Ack:
        return "Mem_Ack";
      case L2Cache_Event_WB_Data:
        return "WB_Data";
      case L2Cache_Event_WB_Data_clean:
        return "WB_Data_clean";
      case L2Cache_Event_Ack:
        return "Ack";
      case L2Cache_Event_Ack_all:
        return "Ack_all";
      case L2Cache_Event_Unblock:
        return "Unblock";
      case L2Cache_Event_Exclusive_Unblock:
        return "Exclusive_Unblock";
      case L2Cache_Event_MEM_Inv:
        return "MEM_Inv";
      default:
        panic("Invalid range for type L2Cache_Event");
    }
}
string L2Cache_Event_to_string ( const L2Cache_Event & obj ) { switch ( obj ) { case L2Cache_Event_L1_GET_INSTR : return " " ; case L2Cache_Event_L1_GETS : return " " ; case L2Cache_Event_L1_GETX : return " " ; case L2Cache_Event_L1_UPGRADE : return " " ; case L2Cache_Event_L1_PUTX : return " " ; case L2Cache_Event_L1_PUTX_old : return " " ; case L2Cache_Event_L2_Replacement : return " " ; case L2Cache_Event_L2_Replacement_clean : return " " ; case L2Cache_Event_Mem_Data : return " " ; case L2Cache_Event_Mem_Ack : return " " ; case L2Cache_Event_WB_Data : return " " ; case L2Cache_Event_WB_Data_clean : return " " ; case L2Cache_Event_Ack : return " " ; case L2Cache_Event_Ack_all : return " " ; case L2Cache_Event_Unblock : return " " ; case L2Cache_Event_Exclusive_Unblock : return " " ; case L2Cache_Event_MEM_Inv : return " " ; default : panic ( " " ) ; } }
Code to convert state to a string
Code to convert state to a string