Fix build issues for AM65xx and J7
authorAravind Batni <aravindbr@ti.com>
Sat, 11 Jul 2020 11:35:20 +0000 (07:35 -0400)
committerAravind Batni <aravindbr@ti.com>
Sat, 11 Jul 2020 11:35:20 +0000 (07:35 -0400)
Signed-off-by: Aravind Batni <aravindbr@ti.com>
test/SaUnitTest/src/framework.c

index a9a0b77ecd724aef05b8073e4655407be66a7df0..8683ce253a04cb7c8305e2c2f77c4218cb8d274e 100644 (file)
@@ -2617,9 +2617,14 @@ int32_t RingPop( Udma_RingHandle ringHandle, FW_CPPI_DESC_T **pAppDesc )
 #endif
         pVirtHostDesc->hostDesc.bufPtr = (uint64_t)Osal_PhysToVirt(pVirtHostDesc->hostDesc.bufPtr);
         pVirtHostDesc->hostDesc.orgBufPtr = (uint64_t)Osal_PhysToVirt(pVirtHostDesc->hostDesc.orgBufPtr);
-#if defined (TEST_CORE_CACHE_COHERENT) || defined (ACP_COHERENCY)
-        /* No cache operations are needed, clear any ASEL bits */
+
+#if defined (ACP_COHERENCY)
+        /*clear any ASEL bits */
         pVirtHostDesc->hostDesc.bufPtr = CSL_pktdmaClrAselInAddr((uint64_t)pVirtHostDesc->hostDesc.bufPtr);
+#endif
+
+#if defined (TEST_CORE_CACHE_COHERENT) || defined (ACP_COHERENCY)
+        /* No cache operations are needed */
 #else
         pktsize  = CSL_FEXT (pVirtHostDesc->hostDesc.descInfo, UDMAP_CPPI5_PD_DESCINFO_PKTLEN);
         CacheP_Inv((const void *)(uintptr_t)pVirtHostDesc->hostDesc.bufPtr, (int32_t)pktsize);