Skip to content

Wrong cache detection of old processors #182

Closed

Description

@gchatelet

Old processors -like Pentium 4- provide cache information via descriptors available in cpuid leaf 2.
https://www.felixcloutier.com/x86/cpuid#input-eax-=-02h--tlb-cache-prefetch-information-returned-in-eax--ebx--ecx--edx

On newer processors this information is provided via leaf 0x00000004 for Intel and leaf 0x8000001D for AMD.

Both detection run sequentially. Unfortunately the ParseCacheInfo function overrides the CacheInfo data already setup by ParseLeaf2.

Activity

  1. added
    bug
    on Oct 20, 2021
  2. self-assigned this
    on Oct 20, 2021
  3. gchatelet commented on Oct 28, 2021

    @gchatelet
    CollaboratorAuthor

    This patch introduced

    • a memory overflow fixed in 7bd206a.
    • a change in behavior fixed in c5659bf.
  4. added this to the v0.7.0 milestone on Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions