All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Alrae <leon.alrae@imgtec.com>
To: Yongbok Kim <yongbok.kim@imgtec.com>, qemu-devel@nongnu.org
Cc: aurelien@aurel32.net
Subject: Re: [Qemu-devel] [PATCH] target-mips: Add more reg numbers for RDHWR
Date: Fri, 16 Oct 2015 15:53:05 +0100	[thread overview]
Message-ID: <56210F51.3070105@imgtec.com> (raw)
In-Reply-To: <1444049296-19715-1-git-send-email-yongbok.kim@imgtec.com>

On 05/10/15 13:48, Yongbok Kim wrote:
> Add more register numbers for RDHWR

Could the commit message say which registers exactly this patch is adding?

> Add check_hwrena() to simplify access control checkings.
> Add RDHWR support to microMIPS R6
> 
> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
> ---

> @@ -1357,6 +1357,12 @@ void helper_mtc0_hwrena(CPUMIPSState *env, target_ulong arg1)
>  {
>      uint32_t mask = 0x0000000F;
>  
> +    if (env->CP0_Config1 & (1 << CP0C1_PC)) {
> +        mask |= (1 << 4);
> +    }

I think we should check also for ISA_MIPS32R6 here. The access to
CP0.PerfCnt via RDHWR was added in R6 and before that the register
number 4 in HWREna was reserved.

Otherwise looks good to me.

Thanks,
Leon

      reply	other threads:[~2015-10-16 14:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-05 12:48 [Qemu-devel] [PATCH] target-mips: Add more reg numbers for RDHWR Yongbok Kim
2015-10-16 14:53 ` Leon Alrae [this message]

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=56210F51.3070105@imgtec.com \
    --to=leon.alrae@imgtec.com \
    --cc=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    --cc=yongbok.kim@imgtec.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.