]> git.proxmox.com Git - mirror_qemu.git/commit
target-i386: Add range check for -cpu ,family=x
authorAndreas Färber <afaerber@suse.de>
Tue, 17 Apr 2012 14:15:15 +0000 (16:15 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 25 Apr 2012 08:51:35 +0000 (10:51 +0200)
commita88a677f54e855c0453f06e0347904e4144e1c2b
tree903d68a28434f3ed2c9d040f14b2a20e3f3cca87
parent61dcd775785b07a5e0c3858b67aa356b87543710
target-i386: Add range check for -cpu ,family=x

A family field value of 0xf and extended family field value of 0xff is
the maximum representable unsigned family number.
All other CPUID property values are bounds-checked, so add a check here
for symmetry before we adopt it in a property setter.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
target-i386/cpu.c