summary refs log tree commit diff stats
path: root/scripts/qapi/gen.py
diff options
context:
space:
mode:
authorXiaoyao Li <xiaoyao.li@intel.com>2020-07-14 01:44:35 +0800
committerEduardo Habkost <ehabkost@redhat.com>2020-07-16 11:04:42 -0400
commit1f43671a0d55d863f9111535ca4241e9fa238506 (patch)
tree993ae1f8b94fbf0c20536677c76cbeddaaf9d68e /scripts/qapi/gen.py
parentee5128bb00f90dd301991d80d1db5224ce924c84 (diff)
downloadfocaccia-qemu-1f43671a0d55d863f9111535ca4241e9fa238506.tar.gz
focaccia-qemu-1f43671a0d55d863f9111535ca4241e9fa238506.zip
i368/cpu: Clear env->user_features after loading versioned CPU model
Features defined in versioned CPU model are recorded in env->user_features
since they are updated as property. It's unwated because they are not
user specified.

Simply clear env->user_features as a fix. It won't clear user specified
features because user specified features are filled to
env->user_features later in x86_cpu_expand_features().

Cc: Chenyi Qiang <chenyi.qiang@intel.com>
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-Id: <20200713174436.41070-2-xiaoyao.li@intel.com>
[ehabkost: fix coding style]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts/qapi/gen.py')
0 files changed, 0 insertions, 0 deletions