Skip to content

i386: Introduce X86CPUCacheCPUID struct

Eduardo Habkost qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2i386: make cache structs const-safetarget/i386/cpu.c target/i386/cpu.h+22 -220 replies
2/2i386: Introduce X86CPUCacheCPUID structtarget/i386/cpu.c target/i386/cpu.h+63 -440 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] i386: Introduce X86CPUCacheCPUID struct

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(-)
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140