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

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definitions

At <Zephyr>/arch/arc/Kconfig:282

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29<Zephyr>/arch/Kconfig:12

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 <Zephyr>/arch/x86/core/Kconfig.ia32:143

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29<Zephyr>/arch/Kconfig:12<Zephyr>/arch/x86/Kconfig:327

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_64 && 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.)