hw/i386: Consolidate topology functions
authorBabu Moger <babu.moger@amd.com>
Wed, 11 Mar 2020 22:52:59 +0000 (17:52 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 17 Mar 2020 23:48:10 +0000 (19:48 -0400)
commitf20dec0b638d1ebb4ef2f71d51ea1c540402bc7c
tree004a4513097253c9ebafda8f35240da5a55b5722
parent53a5e7bddf2a6299e4efdba9ad4f69e1c8f401b0
hw/i386: Consolidate topology functions

Now that we have all the parameters in X86CPUTopoInfo, we can just
pass the structure to calculate the offsets and width.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <158396717953.58170.5628042059144117669.stgit@naples-babu.amd.com>
include/hw/i386/topology.h
target/i386/cpu.c
tests/test-x86-cpuid.c