OSDN Git Service

i386: Introduce use_epyc_apic_id_encoding in X86CPUDefinition
authorBabu Moger <babu.moger@amd.com>
Wed, 11 Mar 2020 22:53:55 +0000 (17:53 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 31 Mar 2020 22:13:32 +0000 (19:13 -0300)
commit0c1538cb1a26287c072645f4759b9872b1596d79
tree365bb76dae518b4c9cf251c0955aa6fa9e25a633
parent6121c7fbfd98dbc3af1b00b56ff2eef66df87828
i386: Introduce use_epyc_apic_id_encoding in X86CPUDefinition

Add a boolean variable use_epyc_apic_id_encoding in X86CPUDefinition.
This will be set if this cpu model needs to use new EPYC based
apic id encoding.

Override the handlers with EPYC based handlers if use_epyc_apic_id_encoding
is set. This will be done in x86_cpus_init.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Message-Id: <158396723514.58170.14825482171652019765.stgit@naples-babu.amd.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c
target/i386/cpu.h