bus/fslmc: enable compilation for other platforms
authorHemant Agrawal <hemant.agrawal@nxp.com>
Wed, 14 Mar 2018 07:56:03 +0000 (13:26 +0530)
committerBruce Richardson <bruce.richardson@intel.com>
Thu, 15 Mar 2018 16:43:36 +0000 (17:43 +0100)
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/fslmc/qbman/qbman_sys_decl.h

index 5640b04..fa6977f 100644 (file)
@@ -36,4 +36,18 @@ static inline void prefetch_for_store(void *p)
 #define dccivac(p)     RTE_SET_USED(p)
 #define prefetch_for_load(p) { asm volatile ("pld [%0]" : : "r" (p)); }
 #define prefetch_for_store(p) { asm volatile ("pld [%0]" : : "r" (p)); }
+
+#else
+#define dcbz(p)        RTE_SET_USED(p)
+#define lwsync()
+#define dcbf(p)        RTE_SET_USED(p)
+#define dccivac(p)     RTE_SET_USED(p)
+static inline void prefetch_for_load(void *p)
+{
+       RTE_SET_USED(p);
+}
+static inline void prefetch_for_store(void *p)
+{
+       RTE_SET_USED(p);
+}
 #endif