The latest development version of this page may be more current than this released 1.14.1 version.
CONFIG_CACHE_LINE_SIZE_DETECT

Detect d-cache line size at runtime

Detect cache line size at runtime

Type: bool

Help

This option enables querying the d-cache build register for finding the d-cache line size at the expense of taking more memory and code and a slightly increased boot time.

If the CPU’s d-cache line size is known in advance, disable this option and manually enter the value for CACHE_LINE_SIZE.

Help

This option enables querying the CPUID register for finding the cache line size at the expense of taking more memory and code and a slightly increased boot time.

If the CPU’s cache line size is known in advance, disable this option and manually enter the value for CACHE_LINE_SIZE.

Direct dependencies

ARC || X86

(Includes any dependencies from if’s and menus.)

Defaults

  • “y” if X86

Kconfig definitions

At arch/arc/Kconfig:171

Included via Kconfig:10Kconfig.zephyr:29arch/Kconfig:15

Menu path: (top menu) → ARC Options → ARCv2 Family Options

config CACHE_LINE_SIZE_DETECT
    bool
    prompt "Detect d-cache line size at runtime" if ARC
    depends on ARC
    help
      This option enables querying the d-cache build register for finding
      the d-cache line size at the expense of taking more memory and code
      and a slightly increased boot time.

      If the CPU's d-cache line size is known in advance, disable this
      option and manually enter the value for CACHE_LINE_SIZE.

At arch/x86/Kconfig:247

Included via Kconfig:10Kconfig.zephyr:29arch/Kconfig:15

Menu path: (top menu) → X86 Architecture Options → Processor Capabilities

config CACHE_LINE_SIZE_DETECT
    bool
    prompt "Detect cache line size at runtime" if X86
    default "y" if X86
    depends on X86
    help
      This option enables querying the CPUID register for finding the cache line
      size at the expense of taking more memory and code and a slightly increased
      boot time.

      If the CPU's cache line size is known in advance, disable this option and
      manually enter the value for CACHE_LINE_SIZE.

(Definitions include propagated dependencies, including from if’s and menus.)