mirror of
https://git.proxmox.com/git/qemu
synced 2025-06-25 03:24:33 +00:00
Make x86 cpuid feature names available in file scope
To be used later. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b827df585b
commit
c6fa82c4e9
@ -32,12 +32,6 @@
|
|||||||
|
|
||||||
//#define DEBUG_MMU
|
//#define DEBUG_MMU
|
||||||
|
|
||||||
static void add_flagname_to_bitmaps(char *flagname, uint32_t *features,
|
|
||||||
uint32_t *ext_features,
|
|
||||||
uint32_t *ext2_features,
|
|
||||||
uint32_t *ext3_features)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
/* feature flags taken from "Intel Processor Identification and the CPUID
|
/* feature flags taken from "Intel Processor Identification and the CPUID
|
||||||
* Instruction" and AMD's "CPUID Specification". In cases of disagreement
|
* Instruction" and AMD's "CPUID Specification". In cases of disagreement
|
||||||
* about feature names, the Linux name is used. */
|
* about feature names, the Linux name is used. */
|
||||||
@ -66,6 +60,13 @@ static void add_flagname_to_bitmaps(char *flagname, uint32_t *features,
|
|||||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void add_flagname_to_bitmaps(char *flagname, uint32_t *features,
|
||||||
|
uint32_t *ext_features,
|
||||||
|
uint32_t *ext2_features,
|
||||||
|
uint32_t *ext3_features)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
for ( i = 0 ; i < 32 ; i++ )
|
for ( i = 0 ; i < 32 ; i++ )
|
||||||
if (feature_name[i] && !strcmp (flagname, feature_name[i])) {
|
if (feature_name[i] && !strcmp (flagname, feature_name[i])) {
|
||||||
*features |= 1 << i;
|
*features |= 1 << i;
|
||||||
|
Loading…
Reference in New Issue
Block a user