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 <>
Acked-by: Michael S. Tsirkin <>
Acked-by: Igor Mammedov <>
Message-Id: <>
Signed-off-by: Eduardo Habkost <>
1 file changed