qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] i386: Introduce X86CPUCacheCPUID struct
@ 2019-06-20 20:36 Eduardo Habkost
  2019-06-20 20:36 ` [Qemu-devel] [PATCH 1/2] i386: make cache structs const-safe Eduardo Habkost
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eduardo Habkost @ 2019-06-20 20:36 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Igor Mammedov, Richard Henderson, Eduardo Habkost,
	Babu Moger

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-06-20 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-20 20:36 [Qemu-devel] [PATCH 0/2] i386: Introduce X86CPUCacheCPUID struct Eduardo Habkost
2019-06-20 20:36 ` [Qemu-devel] [PATCH 1/2] i386: make cache structs const-safe Eduardo Habkost
2019-06-20 20:36 ` [Qemu-devel] [PATCH 2/2] i386: Introduce X86CPUCacheCPUID struct Eduardo Habkost
2019-06-20 21:31 ` [Qemu-devel] [PATCH 0/2] " no-reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).