]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc_piix.c
pc: use generic cpu_model parsing
authorIgor Mammedov <imammedo@redhat.com>
Wed, 13 Sep 2017 16:04:56 +0000 (18:04 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 19 Sep 2017 12:09:32 +0000 (09:09 -0300)
commit311ca98d16bbb6a2a38b38ba898baa4a4d4ab9a7
tree040c5451564ecd2020fcf40ca5fdf30c2eb2d086
parent6063d4c0f98b35a27ca018393d328a1825412a7e
pc: use generic cpu_model parsing

define default CPU type in generic way in pc_machine_class_init()
and let common machine code to handle cpu_model parsing

Patch also introduces TARGET_DEFAULT_CPU_TYPE define for 2 purposes:
  * make foo_machine_class_init() look uniform on every target
  * use define in [bsd|linux]-user targets to pick default
    cpu type

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <1505318697-77161-5-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c
hw/i386/pc_piix.c
target/i386/cpu.c
target/i386/cpu.h