]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fixed two CPUID auto-cache detection problems reported by Guillaume Laurent:
authorNicholas Nethercote <njn@valgrind.org>
Wed, 11 Sep 2002 17:13:28 +0000 (17:13 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 11 Sep 2002 17:13:28 +0000 (17:13 +0000)
commit8ca14d6790f60539f851ec1cc4c8502fc52508c7
tree4acb107369ac0b4cec39068c4b5e4d0f31e771d2
parent1473dafd7fdfc05a39698351732d985be823a0a1
Fixed two CPUID auto-cache detection problems reported by Guillaume Laurent:

  - Some Intel cases were missing, giving spurious warnings such as:

    --18114-- warning: Unknown Intel cache config value (0x50), ignoring

  - The 0x40 case was wrong... its meaning depends on whether you have a P6
    core ("no L2 cache present") or a P4 core ("no L3 cache present").
    Damn wretched Intel CPUID format.

    I was unwittingly assuming P6 cores which meant that P4 cores reporting
    no L3 got this bogus warning:

    --18114-- warning: L2 cache not installed, ignore L2 results.

    So I now don't do anything for that case, and detect a missing L2 cache
    by checking if its set by any of the other entries.

Turns out neither was affecting the results, but better to get rid of them
anyway.

Guillaume tested the changes for me so hopefully they work.

MeRGe to ERASER

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_1_0_BRANCH@936
vg_cachesim.c