Fix x86 feature modifications for features that set multiple bits
authorAvi Kivity <avi@redhat.com>
Sun, 3 May 2009 14:04:03 +0000 (17:04 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 8 May 2009 20:42:52 +0000 (15:42 -0500)
commit02b049df49b3f2709130d4e01838314697a4cdfc
tree59cd0cd24978c194b27363acb418a56b23e3186a
parentc6fa82c4e90d629e16f8dda990f63cec73103cac
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>
target-i386/helper.c