On 02/17/2012 10:46 AM, Andreas Färber wrote:
Hello x86 gurus,

This series came out of my qom-cpu work. The reasoning is that in a QOM world
we will need this logic twice, once as before and once for
-cpu family=x,model=y,stepping=z,model_id=foo.

Note: The family=x value is not bounds-checked in cpu_x86_find_by_name()!

I'd appreciate if someone could double-check the masks I added. I calculated
them based on "Intel® Processor Identification and the CPUID Instruction.
Application Note 485. January 2011".

Applied. Thanks.

Regards,

Anthony Liguori


Thanks,
Andreas

Cc: Andre Przywara<andre.przyw...@amd.com>

Andreas Färber (4):
   target-i386: Introduce x86_cpuid_version_set_family()
   target-i386: Introduce x86_cpuid_version_set_model()
   target-i386: Introduce x86_cpuid_version_set_stepping()
   target-i386: Introduce x86_cpuid_set_model_id()

  target-i386/cpuid.c |   64 +++++++++++++++++++++++++++++++++++----------------
  1 files changed, 44 insertions(+), 20 deletions(-)



Reply via email to