]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Properly check FEATURE_AESKLE
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 21 Mar 2022 13:50:14 +0000 (06:50 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 21 Mar 2022 22:36:09 +0000 (15:36 -0700)
commitd5a493bd996e79ef175467f4b6cbcc4da119b0a1
tree47f55317ebb2bdc20c73e9aa5af4842feaffeb21
parente6afd08da387e3161651c8770d5b7d32741f4341
x86: Properly check FEATURE_AESKLE

1. Pass 0x19 to __cpuid for bit_AESKLE.
2. Enable FEATURE_AESKLE only if bit_AESKLE is set.

PR target/104998
* common/config/i386/cpuinfo.h (get_available_features): Pass
0x19 to __cpuid for bit_AESKLE.  Enable FEATURE_AESKLE only if
bit_AESKLE is set.

(cherry picked from commit d0363a80690a299179d010c1d8a6d6430e7eb73f)
gcc/common/config/i386/cpuinfo.h