mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/riscv: rvv: Add mask agnostic for vv instructions
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 is the first commit regarding the optional mask agnostic behavior. Follow-up commits will add this optional behavior for all rvv instructions. Signed-off-by: eop Chen <eop.chen@sifive.com> Reviewed-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <165570784143.17634.35095816584573691-1@git.sr.ht> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
079520033f
commit
355d5584de
6 changed files with 20 additions and 2 deletions
|
@ -26,8 +26,9 @@ FIELD(VDATA, VM, 0, 1)
|
|||
FIELD(VDATA, LMUL, 1, 3)
|
||||
FIELD(VDATA, VTA, 4, 1)
|
||||
FIELD(VDATA, VTA_ALL_1S, 5, 1)
|
||||
FIELD(VDATA, NF, 6, 4)
|
||||
FIELD(VDATA, WD, 6, 1)
|
||||
FIELD(VDATA, VMA, 6, 1)
|
||||
FIELD(VDATA, NF, 7, 4)
|
||||
FIELD(VDATA, WD, 7, 1)
|
||||
|
||||
/* float point classify helpers */
|
||||
target_ulong fclass_h(uint64_t frs1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue