Am 20.02.2014 18:50, schrieb Peter Maydell: > Win32 doesn't have a cpuid.h, and MacOSX may have one but without > the __cpuid() function we use, which means that commit 9d2eec20 > broke the build for those platforms. Fix this by tightening up > our configure cpuid.h check to test that the functions we need > are present, and adding some missing #ifdef guerds in > tcg/i386/tcg-target.c. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > Tested with Linux x86/64 gcc build, Linux x86/64 clang build, > W32 cross-build and MacOSX 10.8 build. If somebody would like to > review this I'll apply it directly to unbreak things. > Apologies for not catching it before I pushed the tcg pullreq; > I had forgotten to add the 'build on w32' command to my script. >
MinGW-w64's gcc has cpuid.h, so my 32 and 64 bit cross builds work without problems. We can use that code for MinGW, too, but we could also stop supporting MinGW (which has several other deficits). Regards Stefan