]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Fix x86_cpuid_set_model_id()
authorAndreas Färber <afaerber@suse.de>
Tue, 17 Apr 2012 16:21:52 +0000 (18:21 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 25 Apr 2012 08:45:46 +0000 (10:45 +0200)
commitd0a6acf456a2497ce9f70f8366a5b405745ba279
tree51fed753d055a071345c4c79a4444558055f324b
parentcf36b31db209a261ee3bc2737e788e1ced0a1bec
target-i386: Fix x86_cpuid_set_model_id()

Don't assume zeroed cpuid_model[] fields.

This didn't break anything yet but QOM properties should be able to set
the value to something else without setting an intermediate zero string.

Reviewed-by: Eduardo Habhost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
[AF: Use memset() instead of for loop, suggested by Igor]
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c