i386: Simplify CPUID_8000_001E for AMD
commit31ada106d891f56f54d4234ce58c552bc2e734af
authorBabu Moger <babu.moger@amd.com>
Tue, 1 Sep 2020 15:57:32 +0000 (1 10:57 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 18 Sep 2020 17:50:31 +0000 (18 13:50 -0400)
treef4250e49469f0d12633d2bed18ac467d3a1c2f91
parent2f084d1e1d6241dd890516289108e17720c5847f
i386: Simplify CPUID_8000_001E for AMD

apic_id contains all the information required to build
CPUID_8000_001E. core_id and node_id is already part of
apic_id generated by x86_topo_ids_from_apicid.

Also remove the restriction on number bits on core_id and
node_id.

Remove all the hardcoded values and replace with generalized
fields.

Refer the Processor Programming Reference (PPR) documentation
available from the bugzilla Link below.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537
Message-Id: <159897585257.30750.5815593918927986935.stgit@naples-babu.amd.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c