From: Alistair Francis <alistair23@gmail.com>
To: Alvin Chang <alvinga@andestech.com>
Cc: qemu-riscv@nongnu.org, qemu-devel@nongnu.org,
alistair.francis@wdc.com, bin.meng@windriver.com,
liwei1518@gmail.com, dbarboza@ventanamicro.com,
zhiwei_liu@linux.alibaba.com
Subject: Re: [PATCH v4 4/4] target/riscv: Apply modularized matching conditions for icount trigger
Date: Tue, 4 Jun 2024 10:27:38 +1000 [thread overview]
Message-ID: <CAKmqyKM2N21UMsRDhLMfRu36RfJzOtAw25+eEhu4tXXtmqSMqQ@mail.gmail.com> (raw)
In-Reply-To: <20240227012405.71650-5-alvinga@andestech.com>
On Tue, Feb 27, 2024 at 11:25 AM Alvin Chang via <qemu-devel@nongnu.org> wrote:
>
> We have implemented trigger_common_match(), which checks if the enabled
> privilege levels of the trigger match CPU's current privilege level. We
> can invoke trigger_common_match() to check the privilege levels of the
> type 3 triggers.
>
> Signed-off-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
> target/riscv/debug.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/riscv/debug.c b/target/riscv/debug.c
> index 9f9f332019..eb45e2c147 100644
> --- a/target/riscv/debug.c
> +++ b/target/riscv/debug.c
> @@ -624,7 +624,7 @@ void helper_itrigger_match(CPURISCVState *env)
> if (get_trigger_type(env, i) != TRIGGER_TYPE_INST_CNT) {
> continue;
> }
> - if (check_itrigger_priv(env, i)) {
> + if (!trigger_common_match(env, TRIGGER_TYPE_INST_CNT, i)) {
> continue;
> }
> count = itrigger_get_count(env, i);
> --
> 2.34.1
>
>
next prev parent reply other threads:[~2024-06-04 0:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-27 1:24 [PATCH v4 0/4] RISC-V: Modularize common match conditions for trigger Alvin Chang via
2024-02-27 1:24 ` [PATCH v4 1/4] target/riscv: Add functions for common matching conditions of trigger Alvin Chang via
2024-06-04 0:28 ` Alistair Francis
2024-02-27 1:24 ` [PATCH v4 2/4] target/riscv: Apply modularized matching conditions for breakpoint Alvin Chang via
2024-02-27 1:24 ` [PATCH v4 3/4] target/riscv: Apply modularized matching conditions for watchpoint Alvin Chang via
2024-06-04 0:27 ` Alistair Francis
2024-02-27 1:24 ` [PATCH v4 4/4] target/riscv: Apply modularized matching conditions for icount trigger Alvin Chang via
2024-06-04 0:27 ` Alistair Francis [this message]
2024-03-07 2:35 ` [PATCH v4 0/4] RISC-V: Modularize common match conditions for trigger Alvin Che-Chia Chang(張哲嘉)
2024-06-04 1:58 ` Alistair Francis
2024-06-04 4:24 ` Alvin Che-Chia Chang(張哲嘉)
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=CAKmqyKM2N21UMsRDhLMfRu36RfJzOtAw25+eEhu4tXXtmqSMqQ@mail.gmail.com \
--to=alistair23@gmail.com \
--cc=alistair.francis@wdc.com \
--cc=alvinga@andestech.com \
--cc=bin.meng@windriver.com \
--cc=dbarboza@ventanamicro.com \
--cc=liwei1518@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=zhiwei_liu@linux.alibaba.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 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).