eal: introduce non-temporal prefetch
[dpdk.git] / lib / librte_eal / common / include / arch / ppc_64 / rte_prefetch.h
index fea3be1..bcc7185 100644 (file)
@@ -54,6 +54,12 @@ static inline void rte_prefetch2(const volatile void *p)
        asm volatile ("dcbt 0,%[p],1" : : [p] "r" (p));
 }
 
+static inline void rte_prefetch_non_temporal(const volatile void *p)
+{
+       /* non-temporal version not available, fallback to rte_prefetch0 */
+       rte_prefetch0(p);
+}
+
 #ifdef __cplusplus
 }
 #endif