Skip to content

L2_ASSOCIATIVE incorrect for x86 #464

@ShijieC

Description

@ShijieC

line 852,913 at cpuid_x86.c
L2.associative = BITMASK(ecx, 12, 0x0f);

this value is only a index, should use the following table to get the value

                                00H Disabled
                                01H Direct mapped
                                02H 2-way associative
                                04H 4-way associative
                                06H 8-way associative
                                08H 16-way associative
                                0FH Fully associative

ref:
http://www.flounder.com/cpuid_explorer2.htm#CPUID(0x800000006)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions