diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2022-01-25 14:17:33 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-02-04 09:07:43 -0500 |
commit | 2a728de1fff4b9ceede039d078e5e33ff71908f1 (patch) | |
tree | f84b48e332a784d3f182912e9717695af6dc7d52 /tcg | |
parent | 8f3e5ce773c62bb5c4a847f3a9a5c98bbb3b359f (diff) | |
download | qemu-2a728de1fff4b9ceede039d078e5e33ff71908f1.zip qemu-2a728de1fff4b9ceede039d078e5e33ff71908f1.tar.gz qemu-2a728de1fff4b9ceede039d078e5e33ff71908f1.tar.bz2 |
cpuid: use unsigned for max cpuid
__get_cpuid_max returns an unsigned value.
For consistency, store the result in an unsigned variable.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/i386/tcg-target.c.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/i386/tcg-target.c.inc b/tcg/i386/tcg-target.c.inc index 875311f..4dab09f 100644 --- a/tcg/i386/tcg-target.c.inc +++ b/tcg/i386/tcg-target.c.inc @@ -3747,7 +3747,7 @@ static void tcg_target_init(TCGContext *s) { #ifdef CONFIG_CPUID_H unsigned a, b, c, d, b7 = 0; - int max = __get_cpuid_max(0, 0); + unsigned max = __get_cpuid_max(0, 0); if (max >= 7) { /* BMI1 is available on AMD Piledriver and Intel Haswell CPUs. */ |