x86: fix build with older versions of GCC following e34bc403c3
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 6 Jan 2017 14:08:09 +0000 (15:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 6 Jan 2017 14:08:09 +0000 (15:08 +0100)
commit9422b16a507120354a4d58d0abc20be3018d4a0e
treee64c4a5f601013e9c5caed2f06428897a9b0cd5a
parent897129deabc518f2a4207b38f1672393ced47a9a
x86: fix build with older versions of GCC following e34bc403c3

GCCs of at least 4.4 and earlier do not tollerate the initialisiation of the
$VENDOR_cpu_dev structures, because of c_ident becoming an anonymous union.

Instead of using an anonymous union, reintepret c_ident[] in its CPUID form
just in get_cpu_vendor().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/cpu.h