/* This function initializes the event counters in L2 Cache controller with a set of event codes specified by the user.  */
void XL2cc_EventCtrInit(s32 Event0, s32 Event1)
/* This function initializes the event counters in L2 Cache controller with a set of event codes specified by the user.  */
void XL2cc_EventCtrInit(s32 Event0, s32 Event1)
{
	*((volatile u32*)(XPS_L2CC_BASEADDR + XPS_L2CC_EVNT_CNT1_CTRL_OFFSET)) = (((u32)Event1) << 2);
	*((volatile u32*)(XPS_L2CC_BASEADDR + XPS_L2CC_EVNT_CNT0_CTRL_OFFSET)) = (((u32)Event0) << 2);
	XL2cc_EventCtrReset();
}