]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386: Introduce X86CPUTopoInfo to contain topology info
authorBabu Moger <babu.moger@amd.com>
Wed, 11 Mar 2020 22:52:52 +0000 (17:52 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 17 Mar 2020 23:48:10 +0000 (19:48 -0400)
commit53a5e7bddf2a6299e4efdba9ad4f69e1c8f401b0
tree075f6df48630a9667bf9359b9bea3031a1c8d066
parent781c67ca5585b38a29076093ecdff4f273db5a35
hw/i386: Introduce X86CPUTopoInfo to contain topology info

This is an effort to re-arrange few data structure for better readability.

1. Add X86CPUTopoInfo which will have all the topology informations
   required to build the cpu topology. There is no functional changes.

2. Introduce init_topo_info to initialize X86CPUTopoInfo members from
   X86MachineState.

3. Update x86 unit tests for new calling convention with parameter X86CPUTopoInfo

There is no functional changes.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Message-Id: <158396717251.58170.4499717831243474938.stgit@naples-babu.amd.com>
hw/i386/pc.c
hw/i386/x86.c
include/hw/i386/topology.h
include/hw/i386/x86.h
tests/test-x86-cpuid.c