|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH v2 1/2] SMBIOS: Fix endian-ness when populating fields wider than 8-bit |
Date: | Tue, 13 May 2014 22:09:45 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Il 13/05/2014 20:17, Gabriel L. Somlo ha scritto:
- t->processor_id[0] = smbios_cpuid_version; - t->processor_id[1] = smbios_cpuid_features; + t->processor_id[0] = smbios_cpuid_version; /* opaque, no cpu_to_le16 */ + t->processor_id[1] = smbios_cpuid_features; /* opaque, no cpu_to_le16 */
Actually I think these should be subject to cpu_to_le32. They correspond to CPUID values, so they are little-endian 32-bit.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |