47#if defined XENV_VXWORKS
49#error "Unknown processor / architecture. Must be PPC for VxWorks."
53#include "mb_interface.h"
55#include "xparameters.h"
72#define Xil_L1DCacheInvalidate() microblaze_invalidate_dcache()
84#define Xil_L2CacheInvalidate() microblaze_invalidate_cache_ext()
101#define Xil_L1DCacheInvalidateRange(Addr, Len) \
102 microblaze_invalidate_dcache_range((Addr), (Len))
119#define Xil_L2CacheInvalidateRange(Addr, Len) \
120 microblaze_invalidate_cache_ext_range((Addr), (Len))
135#if (XPAR_MICROBLAZE_DCACHE_USE_WRITEBACK == 1)
136# define Xil_L1DCacheFlushRange(Addr, Len) \
137 microblaze_flush_dcache_range((Addr), (Len))
139# define Xil_L1DCacheFlushRange(Addr, Len) \
140 microblaze_invalidate_dcache_range((Addr), (Len))
156#define Xil_L2CacheFlushRange(Addr, Len) \
157 microblaze_flush_cache_ext_range((Addr), (Len))
168#if (XPAR_MICROBLAZE_DCACHE_USE_WRITEBACK == 1)
169# define Xil_L1DCacheFlush() microblaze_flush_dcache()
171# define Xil_L1DCacheFlush() microblaze_invalidate_dcache()
183#define Xil_L2CacheFlush() microblaze_flush_cache_ext()
196#define Xil_L1ICacheInvalidateRange(Addr, Len) \
197 microblaze_invalidate_icache_range((Addr), (Len))
207#define Xil_L1ICacheInvalidate() \
208 microblaze_invalidate_icache()
221#define Xil_L1DCacheEnable() \
222 microblaze_enable_dcache()
234#define Xil_L1DCacheDisable() \
235 microblaze_disable_dcache()
247#define Xil_L1ICacheEnable() \
248 microblaze_enable_icache()
260#define Xil_L1ICacheDisable() \
261 microblaze_disable_icache()
271#define Xil_DCacheEnable() Xil_L1DCacheEnable()
282#define Xil_ICacheEnable() Xil_L1ICacheEnable()
292#define Xil_DCacheInvalidate() \
293 Xil_L2CacheInvalidate(); \
294 Xil_L1DCacheInvalidate();
313#define Xil_DCacheInvalidateRange(Addr, Len) \
314 Xil_L2CacheInvalidateRange((Addr), (Len)); \
315 Xil_L1DCacheInvalidateRange((Addr), (Len));
326#define Xil_DCacheFlush() \
327 Xil_L2CacheFlush(); \
344#define Xil_DCacheFlushRange(Addr, Len) \
345 Xil_L2CacheFlushRange((Addr), (Len)); \
346 Xil_L1DCacheFlushRange((Addr), (Len));
356#define Xil_ICacheInvalidate() \
357 Xil_L2CacheInvalidate(); \
358 Xil_L1ICacheInvalidate();
376#define Xil_ICacheInvalidateRange(Addr, Len) \
377 Xil_L2CacheInvalidateRange((Addr), (Len)); \
378 Xil_L1ICacheInvalidateRange((Addr), (Len));
void Xil_ICacheDisable(void)
Disable the instruction cache.
Definition: xil_cache.c:594
void Xil_DCacheDisable(void)
Disable the Data cache.
Definition: xil_cache.c:127