]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Split command line parsing out of cpu_x86_register()
authorAndreas Färber <afaerber@suse.de>
Fri, 15 Feb 2013 13:06:56 +0000 (14:06 +0100)
committerAndreas Färber <afaerber@suse.de>
Sat, 16 Feb 2013 13:51:01 +0000 (14:51 +0100)
commit2d64255bd7c0d3933ff5ab2cabff11bcb09117a8
tree0694e96a3a974cb7ecb26624301b3d1479dd675c
parent5c3c6a682dedb3ef6becf112867cf92abf203816
target-i386: Split command line parsing out of cpu_x86_register()

In order to instantiate a CPU subtype we will need to know which type,
so move the cpu_model splitting into cpu_x86_init().

Parameters need to be set on the X86CPU instance, so move
cpu_x86_parse_featurestr() into cpu_x86_init() as well.

This leaves cpu_x86_register() operating on the model name only.

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