From: Weiwei Li <liweiwei@iscas.ac.cn>
To: ~eopxd <yueh.ting.chen@gmail.com>,
qemu-devel@nongnu.org, qemu-riscv@nongnu.org
Cc: Palmer Dabbelt <palmer@dabbelt.com>,
Alistair Francis <alistair.francis@wdc.com>,
Bin Meng <bin.meng@windriver.com>,
Frank Chang <frank.chang@sifive.com>,
WeiWei Li <liweiwei@iscas.ac.cn>, eop Chen <eop.chen@sifive.com>
Subject: Re: [PATCH qemu v2 10/10] target/riscv: rvv: Add option 'rvv_ma_all_1s' to enable optional mask agnostic behavior
Date: Wed, 11 May 2022 10:39:21 +0800 [thread overview]
Message-ID: <698c2d59-942c-fae9-98ea-af7a24a897fb@iscas.ac.cn> (raw)
In-Reply-To: <165220716770.22380.2493420346587893209-10@git.sr.ht>
在 2022/5/11 上午2:10, ~eopxd 写道:
> From: eopXD <eop.chen@sifive.com>
>
> According to v-spec, mask agnostic behavior can be either kept as
> undisturbed or set elements' bits to all 1s. To distinguish the
> difference of mask policies, QEMU should be able to simulate the mask
> agnostic behavior as "set mask elements' bits to all 1s".
>
> There are multiple possibility for agnostic elements according to
> v-spec. The main intent of this patch-set tries to add option that
> can distinguish between mask policies. Setting agnostic elements to
> all 1s allows QEMU to express this.
>
> This commit adds option 'rvv_ma_all_1s' is added to enable the
> behavior, it is default as disabled.
>
> Signed-off-by: eop Chen <eop.chen@sifive.com>
> Reviewed-by: Frank Chang <frank.chang@sifive.com>
> ---
> target/riscv/cpu.c | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Weiwei Li<liweiwei@iscas.ac.cn>
Regards,
Weiwei Li
>
> diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
> index 720c8b9e5c..0245844b99 100644
> --- a/target/riscv/cpu.c
> +++ b/target/riscv/cpu.c
> @@ -880,6 +880,7 @@ static Property riscv_cpu_properties[] = {
>
> DEFINE_PROP_UINT64("resetvec", RISCVCPU, cfg.resetvec, DEFAULT_RSTVEC),
> DEFINE_PROP_BOOL("rvv_ta_all_1s", RISCVCPU, cfg.rvv_ta_all_1s, false),
> + DEFINE_PROP_BOOL("rvv_ma_all_1s", RISCVCPU, cfg.rvv_ma_all_1s, false),
> DEFINE_PROP_END_OF_LIST(),
> };
>
prev parent reply other threads:[~2022-05-11 2:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 18:26 [PATCH qemu v2 00/10] Add mask agnostic behavior for rvv instructions ~eopxd
2022-03-17 7:26 ` [PATCH qemu v2 01/10] target/riscv: rvv: Add mask agnostic for vv instructions ~eopxd
2022-05-11 2:06 ` Weiwei Li
2022-03-17 7:47 ` [PATCH qemu v2 02/10] target/riscv: rvv: Add mask agnostic for vector load / store instructions ~eopxd
2022-05-11 1:59 ` Weiwei Li
2022-05-11 2:53 ` Weiwei Li
2022-03-17 8:38 ` [PATCH qemu v2 03/10] target/riscv: rvv: Add mask agnostic for vx instructions ~eopxd
2022-05-11 2:07 ` Weiwei Li
2022-03-17 8:43 ` [PATCH qemu v2 04/10] target/riscv: rvv: Add mask agnostic for vector integer shift instructions ~eopxd
2022-05-11 2:09 ` Weiwei Li
2022-03-17 8:46 ` [PATCH qemu v2 05/10] target/riscv: rvv: Add mask agnostic for vector integer comparison instructions ~eopxd
2022-05-11 2:24 ` Weiwei Li
2022-03-17 8:52 ` [PATCH qemu v2 06/10] target/riscv: rvv: Add mask agnostic for vector fix-point arithmetic instructions ~eopxd
2022-05-11 2:26 ` Weiwei Li
2022-03-17 9:08 ` [PATCH qemu v2 07/10] target/riscv: rvv: Add mask agnostic for vector floating-point instructions ~eopxd
2022-05-11 2:28 ` Weiwei Li
2022-03-17 9:14 ` [PATCH qemu v2 08/10] target/riscv: rvv: Add mask agnostic for vector mask instructions ~eopxd
2022-05-11 2:37 ` Weiwei Li
2022-03-17 9:32 ` [PATCH qemu v2 09/10] target/riscv: rvv: Add mask agnostic for vector permutation instructions ~eopxd
2022-05-11 2:38 ` Weiwei Li
2022-05-10 18:10 ` [PATCH qemu v2 10/10] target/riscv: rvv: Add option 'rvv_ma_all_1s' to enable optional mask agnostic behavior ~eopxd
2022-05-11 2:39 ` Weiwei Li [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=698c2d59-942c-fae9-98ea-af7a24a897fb@iscas.ac.cn \
--to=liweiwei@iscas.ac.cn \
--cc=alistair.francis@wdc.com \
--cc=bin.meng@windriver.com \
--cc=eop.chen@sifive.com \
--cc=frank.chang@sifive.com \
--cc=palmer@dabbelt.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=yueh.ting.chen@gmail.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).