Bug 324882 - CPUID should depend on VEX capabilities, not on underlying CPU
Summary: CPUID should depend on VEX capabilities, not on underlying CPU
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: vex (show other bugs)
Version: 3.9.0.SVN
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-13 12:12 UTC by Mark Wielaard
Modified: 2013-12-06 09:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2013-09-13 12:12:50 UTC
Currently (for AMD64 and x86) the CPUID emulation (dirty helper)  depends on the underlying CPU capabilities by checking the archinfo->hwcap flags. And it only checks some combinations, not all (for example AVX2 is never checked nor claimed). But VEX is often capable of emulating certain instructions even in cases the underlying hardware doesn't support them.

Maybe it would even make sense for the user to select the hardware capabilities that it wants see supported (to more precisely emulate some specific machine).

Reproducible: Always




See also https://bugs.kde.org/show_bug.cgi?id=323893