History | View | Annotate | Download (38.5 kB)
x86/cpuid: move CPUID functions into separate file
about half of target-i386/helper.c consist of CPUID related functions.Only one of them is a real TCG helper function. So move the wholeCPUID stuff out of this into a separate file to get bettermaintainable parts....
x86/cpuid: replace magic number with named constant
CPUID leaf Fn8000_0001.EDX contains a copy of many Fn0000_0001.EDX bits.Define a name for this mask to improve readability and avoid typos.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
x86/cpuid: fix missing feature set bits
This one was accidently removed with commitbb0300dc57c10b3721451b0ff566a03f9276cc77
x86/cpuid: moved host_cpuid function and remove prototype
the host_cpuid function was located at the end of the file and hada prototype before it's first use. Move it up and remove theprototype.