Kconfig.cache 898 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # MN10300 CPU cache options
  3. #
  4. choice
  5. prompt "CPU Caching mode"
  6. default MN10300_CACHE_WBACK
  7. help
  8. This option determines the caching mode for the kernel.
  9. Write-Back caching mode involves the all reads and writes causing
  10. the affected cacheline to be read into the cache first before being
  11. operated upon. Memory is not then updated by a write until the cache
  12. is filled and a cacheline needs to be displaced from the cache to
  13. make room. Only at that point is it written back.
  14. Write-Through caching only fetches cachelines from memory on a
  15. read. Writes always get written directly to memory. If the affected
  16. cacheline is also in cache, it will be updated too.
  17. The final option is to turn of caching entirely.
  18. config MN10300_CACHE_WBACK
  19. bool "Write-Back"
  20. config MN10300_CACHE_WTHRU
  21. bool "Write-Through"
  22. config MN10300_CACHE_DISABLED
  23. bool "Disabled"
  24. endchoice