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_LONGMODE && X86)

(Includes any dependencies from ifs and menus.)

Defaults

  • y

Kconfig definitions

At arch/arc/Kconfig:173

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

Menu path: (Top) → ARC Options → ARCv2 Family Options

config CACHE_LINE_SIZE_DETECT
    bool "Detect d-cache line size at runtime"
    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/core/Kconfig.ia32:281

Included via Kconfig:10Kconfig.zephyr:34arch/Kconfig:15arch/x86/Kconfig:111

Menu path: (Top) → X86 Architecture Options → Processor Capabilities

config CACHE_LINE_SIZE_DETECT
    bool "Detect cache line size at runtime"
    default y
    depends on !X86_LONGMODE && 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.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)