1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2015 Cavium, Inc 3 */ 4 5 #ifndef _RTE_PREFETCH_ARM_64_H_ 6 #define _RTE_PREFETCH_ARM_64_H_ 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 #include <rte_common.h> 13 #include "generic/rte_prefetch.h" 14 rte_prefetch0(const volatile void * p)15static inline void rte_prefetch0(const volatile void *p) 16 { 17 asm volatile ("PRFM PLDL1KEEP, [%0]" : : "r" (p)); 18 } 19 rte_prefetch1(const volatile void * p)20static inline void rte_prefetch1(const volatile void *p) 21 { 22 asm volatile ("PRFM PLDL2KEEP, [%0]" : : "r" (p)); 23 } 24 rte_prefetch2(const volatile void * p)25static inline void rte_prefetch2(const volatile void *p) 26 { 27 asm volatile ("PRFM PLDL3KEEP, [%0]" : : "r" (p)); 28 } 29 rte_prefetch_non_temporal(const volatile void * p)30static inline void rte_prefetch_non_temporal(const volatile void *p) 31 { 32 asm volatile ("PRFM PLDL1STRM, [%0]" : : "r" (p)); 33 } 34 35 __rte_experimental 36 static inline void rte_cldemote(const volatile void * p)37rte_cldemote(const volatile void *p) 38 { 39 RTE_SET_USED(p); 40 } 41 42 #ifdef __cplusplus 43 } 44 #endif 45 46 #endif /* _RTE_PREFETCH_ARM_64_H_ */ 47