]> git.proxmox.com Git - qemu.git/commit
Fix x86 feature modifications for features that set multiple bits
authorAvi Kivity <avi@redhat.com>
Wed, 20 May 2009 18:36:15 +0000 (15:36 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 May 2009 20:21:14 +0000 (15:21 -0500)
commita675d9b8b5dbf743f10a5521cfc6ce6f5f96ac81
tree35e9f749b84deff6a9f3c35f1cd933c41276ac5f
parentce60db1da225acd4709c9cd955377f2a988b5f67
Fix x86 feature modifications for features that set multiple bits

QEMU allows adding or removing cpu features by using the syntax '-cpu +feature'
or '-cpu -feature'.  Some cpuid features cause more than one bit to be set or
cleared; but QEMU stops after just one bit has been modified, causing the
feature bits to be inconsistent.

Fix by allowing all feature bits corresponding to a given name to be set.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/helper.c