]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Prepare "vendor" property for X86CPU
authorAndreas Färber <afaerber@suse.de>
Tue, 17 Apr 2012 17:22:58 +0000 (19:22 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 25 Apr 2012 08:51:36 +0000 (10:51 +0200)
commitd480e1aff2f3df3d02900905bcc8e0c4e4c108c4
tree31f7df511842c35299e52c09fd061e0e8304c39e
parent16b93aa89df07524a695855545a88522ef47fa36
target-i386: Prepare "vendor" property for X86CPU

Using it now would incur converting the three x86_def_t vendor words
into a string for object_property_set_str(), then back to three words
in the "vendor" setter.
The built-in CPU definitions use numeric preprocessor defines to
initialize the three words in a charset-safe way, so do not change the
fields to char[12] just to use the 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