]> git.ipfire.org Git - thirdparty/valgrind.git/commit
amd64 front end: try to avoid a Memcheck false positive related to CPUID. n-i-bz.
authorJulian Seward <jseward@acm.org>
Sat, 13 Mar 2021 18:20:50 +0000 (19:20 +0100)
committerJulian Seward <jseward@acm.org>
Sat, 13 Mar 2021 18:20:50 +0000 (19:20 +0100)
commita049da18b3c045fc8929bd56d404a01046e4c26c
tree6da7034d49bd52f17998381256769adc22016b6e
parent21571252964c4d7860210cbe9f60a49eb6881824
amd64 front end: try to avoid a Memcheck false positive related to CPUID.  n-i-bz.

In the amd64 front end, CPUID is implemented by calling dirty helper.  The way
the side-effects for this call are declared can lead to false positives from
Memcheck.  This is a somewhat inelegant "fix", but it's the least-worst that
can be done without changing parameter-passing for the helper functions
involved.  A big in-line comment explains the problem and fix.
VEX/priv/guest_amd64_toIR.c