This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 02/01/2017 05:09 AM, Pedro Alves wrote:
On 01/26/2017 05:18 PM, Luis Machado wrote:+/* Fetches information from cpuid and sets flags indicating supported + features. */What flags?
This is stale. The function should actually be called check_rdrand_support, so that's what it does. In my previous design it checked for a number of features, but i've trimmed it down.
+ +static unsigned int +check_cpu_support (void) +{ + unsigned int rdrand_mask = (1 << 30); + unsigned int eax, ebx, ecx, edx; + + __get_cpuid(1, &eax, &ebx, &ecx, &edx);
Fixed locally.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |