XilinxProcessorIPLib/drivers/aiengine/src/lib/xaielib.c
u8 XAieLib_MemSyncForCPU(XAieLib_MemInst *XAieLib_MemInstPtr)
{
#ifdef __AIESIM__
	return 0;
#elif defined __AIEBAREMTL__
	Xil_DCacheInvalidateRange(XAieLib_MemInstPtr->Vaddr, XAieLib_MemInstPtr->Size);
	return 0;
#else
	return XAieIO_MemSyncForCPU((XAieIO_Mem *)XAieLib_MemInstPtr);
#endif
}
/*****************************************************************************/
/**
*
* This is the memory function to sync the memory for CPU
*
* @param	XAieLib_MemInstPtr: IO Memory instance pointer.
*
* @return	XAIELIB_SUCCESS if successful.
*
* @note		None.
*
*******************************************************************************/
This is the memory function to sync the memory for CPU
This is the memory function to sync the memory for CPU
u8 XAieLib_MemSyncForCPU(XAieLib_MemInst *XAieLib_MemInstPtr)
{
#ifdef __AIESIM__
	return 0;
#elif defined __AIEBAREMTL__
	Xil_DCacheInvalidateRange(XAieLib_MemInstPtr->Vaddr, XAieLib_MemInstPtr->Size);
	return 0;
#else
	return XAieIO_MemSyncForCPU((XAieIO_Mem *)XAieLib_MemInstPtr);
#endif
}
u8 XAieLib_MemSyncForCPU ( XAieLib_MemInst * XAieLib_MemInstPtr ) { #ifdef __AIESIM__ return 0 ; #elif defined __AIEBAREMTL__ Xil_DCacheInvalidateRange ( XAieLib_MemInstPtr -> Vaddr , XAieLib_MemInstPtr -> Size ) ; return 0 ; #else return XAieIO_MemSyncForCPU ( ( XAieIO_Mem * ) XAieLib_MemInstPtr ) ; #endif }
This is the memory function to sync the memory for CPU
This is the memory function to sync the memory for CPU