mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 12:01:08 +00:00
i386: Rename X86CPU::host_features to X86CPU::max_features
Rename the field and add a small comment to make its purpose clearer. Backports commit 44bd8e530661be1d22ae0f461a5c9bdbcc3847ec from qemu
This commit is contained in:
parent
ee609fa59f
commit
be606acff9
|
@ -3076,12 +3076,12 @@ static void x86_cpu_load_features(struct uc_struct *uc, X86CPU *cpu, Error **err
|
|||
FeatureWord w;
|
||||
Error *local_err = NULL;
|
||||
|
||||
/*TODO: cpu->host_features incorrectly overwrites features
|
||||
/*TODO: cpu->max_features incorrectly overwrites features
|
||||
* set using "feat=on|off". Once we fix this, we can convert
|
||||
* plus_features & minus_features to global properties
|
||||
* inside x86_cpu_parse_featurestr() too.
|
||||
*/
|
||||
if (cpu->host_features) {
|
||||
if (cpu->max_features) {
|
||||
for (w = 0; w < FEATURE_WORDS; w++) {
|
||||
env->features[w] =
|
||||
x86_cpu_get_supported_feature_word(uc, w, cpu->migratable);
|
||||
|
|
|
@ -1192,7 +1192,7 @@ typedef struct X86CPU {
|
|||
bool enforce_cpuid;
|
||||
bool expose_kvm;
|
||||
bool migratable;
|
||||
bool host_features;
|
||||
bool max_features; /* Enable all supported features automatically */
|
||||
uint32_t apic_id;
|
||||
|
||||
/* if true the CPUID code directly forward host cache leaves to the guest */
|
||||
|
|
Loading…
Reference in a new issue