]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386: Reorganize and document CPUID initialization steps
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 16 Jan 2017 21:11:21 +0000 (19:11 -0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 27 Feb 2017 16:23:09 +0000 (13:23 -0300)
commitb8d834a00fa3ed4dad7d371e1a00938a126a54a0
tree18e354bb876bbf0c96fc8b8ea872b06c2712e737
parent44bd8e530661be1d22ae0f461a5c9bdbcc3847ec
i386: Reorganize and document CPUID initialization steps

CPU runnability checks and CPU model expansion have slightly
different requirements. Document the steps involved in loading a
CPU model and realizing a CPU, so their requirements and purpose
are clearly defined.

This patch doesn't change any implementation. It just add
comments, rename the x86_cpu_load_features() function for clarity
(so it won't be confused with x86_cpu_load_def()), and move
x86_cpu_filter_features() closer to it.

Message-Id: <20170116211124.29245-2-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c