This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] Add rdrand/rdseed record/replay tests
- From: Pedro Alves <palves at redhat dot com>
- To: Luis Machado <lgustavo at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Wed, 1 Feb 2017 11:09:07 +0000
- Subject: Re: [PATCH 1/2] Add rdrand/rdseed record/replay tests
- Authentication-results: sourceware.org; auth=none
- References: <1485451129-16439-1-git-send-email-lgustavo@codesourcery.com>
On 01/26/2017 05:18 PM, Luis Machado wrote:
> +/* Fetches information from cpuid and sets flags indicating supported
> + features. */
What flags?
> +
> +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);
Space before parens.
> + return ((ecx & rdrand_mask) == rdrand_mask);
> +}
> +
Thanks,
Pedro Alves