]> git.proxmox.com Git - mirror_qemu.git/commit
target/i386: Cleanup and use the EPYC mode topology functions
authorBabu Moger <babu.moger@amd.com>
Wed, 11 Mar 2020 22:53:41 +0000 (17:53 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 31 Mar 2020 22:13:32 +0000 (19:13 -0300)
commitdd08ef0318e2b61d14bc069590d174913f7f437a
tree8133755f50047aeba966106de3b7698d57b13453
parent7568b205555a6405042f62c64af3268f4330aed5
target/i386: Cleanup and use the EPYC mode topology functions

Use the new functions from topology.h and delete the unused code. Given the
sockets, nodes, cores and threads, the new functions generate apic id for EPYC
mode. Removes all the hardcoded values.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <158396722151.58170.8031705769621392927.stgit@naples-babu.amd.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c