cache.h 889 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * include/asm-xtensa/cacheflush.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. * 2 of the License, or (at your option) any later version.
  8. *
  9. * (C) 2001 - 2005 Tensilica Inc.
  10. */
  11. #ifndef _XTENSA_CACHE_H
  12. #define _XTENSA_CACHE_H
  13. #include <xtensa/config/core.h>
  14. #if XCHAL_ICACHE_SIZE > 0
  15. # if (XCHAL_ICACHE_SIZE % (XCHAL_ICACHE_LINESIZE*XCHAL_ICACHE_WAYS*4)) != 0
  16. # error cache configuration outside expected/supported range!
  17. # endif
  18. #endif
  19. #if XCHAL_DCACHE_SIZE > 0
  20. # if (XCHAL_DCACHE_SIZE % (XCHAL_DCACHE_LINESIZE*XCHAL_DCACHE_WAYS*4)) != 0
  21. # error cache configuration outside expected/supported range!
  22. # endif
  23. #endif
  24. #define L1_CACHE_SHIFT XCHAL_CACHE_LINEWIDTH_MAX
  25. #define L1_CACHE_BYTES XCHAL_CACHE_LINESIZE_MAX
  26. #endif /* _XTENSA_CACHE_H */