i386: Don't set CPUClass::cpu_def on "max" model
commit0bacd8b3046fbc9bf710619ac3edd4bbca2b40ec
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 22 Feb 2017 18:39:19 +0000 (22 15:39 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 27 Feb 2017 16:23:25 +0000 (27 13:23 -0300)
treeb4551886ccf11a63dbd4f0c9d0c64a58e9ab22d9
parent6900d1cc8aa6490d40f5ffbb91ada9d5733868f5
i386: Don't set CPUClass::cpu_def on "max" model

Host CPUID info is used by the "max" CPU model only in KVM mode.
Move the initialization of CPUID data for "max" from class_init
to instance_init, and don't set CPUClass::cpu_def for "max".

Message-Id: <20170222183919.11928-4-ehabkost@redhat.com>
Tested-by: Richard W.M. Jones <rjones@redhat.com>
Tested-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu-qom.h
target/i386/cpu.c