The new struct will let us declare the existing legacy CPU topology info in a static constant, instead of defining it inside x86_cpu_realizefn(). While doing it, make the CPU cache declarations all constants.
This will help us represent the model-specific cache info as QOM properties in the future. Currently X86CPUDefinition::cache_info (which is being renamed to X86CPUDefinition::cache_cpuid) is the only CPU model field that can't be represented as a QOM property value. Eduardo Habkost (2): i386: make cache structs const-safe i386: Introduce X86CPUCacheCPUID struct target/i386/cpu.h | 15 +++--- target/i386/cpu.c | 134 +++++++++++++++++++++++++++------------------- 2 files changed, 84 insertions(+), 65 deletions(-) -- 2.18.0.rc1.1.g3f1ff2140