qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Nikita Shubin <nikita.shubin@maquefel.me>
Cc: qemu-riscv@nongnu.org, Nikita Shubin <n.shubin@yadro.com>,
	Bin Meng <bin.meng@windriver.com>,
	qemu-devel@nongnu.org,
	Alistair Francis <alistair.francis@wdc.com>,
	atishp@atishpatra.org, Palmer Dabbelt <palmer@dabbelt.com>
Subject: Re: [PATCH] target/riscv/pmp: fix no pmp illegal intrs
Date: Tue, 14 Dec 2021 13:13:57 -0800	[thread overview]
Message-ID: <b165ef0f-3336-f4e5-61ee-b3d8cf9e02c0@linaro.org> (raw)
In-Reply-To: <6a13ed88-e109-93e4-9254-62b6b04f5913@linaro.org>

On 12/14/21 1:12 PM, Richard Henderson wrote:
> On 12/14/21 1:26 AM, Nikita Shubin wrote:
>> -    if (!pmp_get_num_rules(env) && (prev_priv != PRV_M)) {
>> +    if (riscv_feature(env, RISCV_FEATURE_PMP) &&
>> +        !pmp_get_num_rules(env) && (prev_priv != PRV_M)) {
> 
> When would the number of rules become non-zero with PMP disabled?
> When does this test make a difference?

Oh, nevermind, I see what you mean.


r~



  reply	other threads:[~2021-12-14 21:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-14  9:26 [PATCH] target/riscv/pmp: fix no pmp illegal intrs Nikita Shubin
2021-12-14 21:12 ` Richard Henderson
2021-12-14 21:13   ` Richard Henderson [this message]
2021-12-15  7:57     ` Nikita Shubin
2021-12-21  6:34 ` Alistair Francis
2021-12-21  7:13   ` Nikita Shubin
2021-12-22 22:15     ` Alistair Francis

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=b165ef0f-3336-f4e5-61ee-b3d8cf9e02c0@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=atishp@atishpatra.org \
    --cc=bin.meng@windriver.com \
    --cc=n.shubin@yadro.com \
    --cc=nikita.shubin@maquefel.me \
    --cc=palmer@dabbelt.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@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).