qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <qemu@kernel.dk>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [5317] Core 2 Duo specification (Alexander Graf).
Date: Fri, 26 Sep 2008 12:37:40 +0200	[thread overview]
Message-ID: <20080926103739.GX2677@kernel.dk> (raw)
In-Reply-To: <E1KivJL-000543-32@cvs.savannah.gnu.org>

On Thu, Sep 25 2008, Andrzej Zaborowski wrote:
> Revision: 5317
>           http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5317
> Author:   balrog
> Date:     2008-09-25 18:11:30 +0000 (Thu, 25 Sep 2008)
> 
> Log Message:
> -----------
> Core 2 Duo specification (Alexander Graf).
> 
> This patch adds a Core 2 Duo CPU to the available CPU types. The CPU
> definition tries to resemble a real CPU as good as possible, whilst not
> exposing features qemu does not implement.
> The patch also includes some minor additions that Core 2 Duo CPUs have:
> 
> - New MSR: MSR_IA32_PERF_STATUS
> - CPUID up to level 5 (cache info and mwait)
> 
> Signed-off-by: Alexander Graf <agraf@suse.de>
> 
> Modified Paths:
> --------------
>     trunk/target-i386/cpu.h
>     trunk/target-i386/helper.c
>     trunk/target-i386/op_helper.c
> 
> Modified: trunk/target-i386/cpu.h
> ===================================================================
> --- trunk/target-i386/cpu.h	2008-09-25 18:08:05 UTC (rev 5316)
> +++ trunk/target-i386/cpu.h	2008-09-25 18:11:30 UTC (rev 5317)
> @@ -242,6 +242,8 @@
>  #define MSR_MCG_STATUS                  0x17a
>  #define MSR_MCG_CTL                     0x17b
>  
> +#define MSR_IA32_PERF_STATUS            0x198
> +
>  #define MSR_PAT                         0x277
>  
>  #define MSR_EFER                        0xc0000080
> @@ -341,6 +343,9 @@
>  #define CPUID_VENDOR_AMD_2   0x69746e65 /* "enti" */ 
>  #define CPUID_VENDOR_AMD_3   0x444d4163 /* "cAMD" */
>  
> +#define CPUID_MWAIT_IBE     (1 << 1) /* Interrupts can exit capability */
> +#define CPUID_MWAIT_EMX     (0 << 1) /* enumeration supported */

Ehm, should that not be

#define CPUID_MWAIT_EMX     (1 << 0)

-- 
Jens Axboe

  reply	other threads:[~2008-09-26 10:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-25 18:11 [Qemu-devel] [5317] Core 2 Duo specification (Alexander Graf) Andrzej Zaborowski
2008-09-26 10:37 ` Jens Axboe [this message]
2008-09-26 15:26   ` Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080926103739.GX2677@kernel.dk \
    --to=qemu@kernel.dk \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).