diff options
author | Xiaoyao Li <xiaoyao.li@intel.com> | 2020-07-14 01:44:36 +0800 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-07-16 11:04:42 -0400 |
commit | f9f08e7cae8a6c292cacaf6531ede88786fcb3d3 (patch) | |
tree | 3ddcdecd2b3da2592e020a44e07b6b09a90428fb /target | |
parent | 1f43671a0d55d863f9111535ca4241e9fa238506 (diff) | |
download | qemu-f9f08e7cae8a6c292cacaf6531ede88786fcb3d3.zip qemu-f9f08e7cae8a6c292cacaf6531ede88786fcb3d3.tar.gz qemu-f9f08e7cae8a6c292cacaf6531ede88786fcb3d3.tar.bz2 |
i386/cpu: Don't add unavailable_features to env->user_features
Features unavailable due to absent of their dependent features should
not be added to env->user_features. env->user_features only contains the
feature explicity specified with -feature/+feature by user.
Fixes: 99e24dbdaa68 ("target/i386: introduce generic feature dependency mechanism")
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-Id: <20200713174436.41070-3-xiaoyao.li@intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/i386/cpu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index caf0334..93b62b2 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -6371,7 +6371,6 @@ static void x86_cpu_expand_features(X86CPU *cpu, Error **errp) unavailable_features & env->user_features[d->to.index], "This feature depends on other features that were not requested"); - env->user_features[d->to.index] |= unavailable_features; env->features[d->to.index] &= ~unavailable_features; } } |