[Mesa-dev] [Bug 87913] CPU cacheline size of 0 can be returned by CPUID leaf 0x80000006 in some virtual machines

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 31 08:03:46 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=87913

--- Comment #2 from Leonid Shatz <leonid.shatz at ravellosystems.com> ---
Sorry, the correct code would be something like:

   if (regs[0] >= 0x80000006) {
        cpuid(0x80000006, regs2);
+       if ((regs2[2] & 0xFF) > 0)
            util_cpu_caps.cacheline = regs2[2] & 0xFF;
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141231/5a82635c/attachment-0001.html>


More information about the mesa-dev mailing list