diff options
author | Daniel Henrique Barboza <dbarboza@ventanamicro.com> | 2024-01-22 13:11:03 -0300 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2024-02-09 20:43:14 +1000 |
commit | bd2c82283d21e3400d7d89676a221935904c2fe6 (patch) | |
tree | 40cf0aed58ab41ba89b199ea7844342ad27f5b04 /ui/input-keymap.c | |
parent | 7aa4d519cba610876abac027a5812af87c834d22 (diff) | |
download | qemu-bd2c82283d21e3400d7d89676a221935904c2fe6.zip qemu-bd2c82283d21e3400d7d89676a221935904c2fe6.tar.gz qemu-bd2c82283d21e3400d7d89676a221935904c2fe6.tar.bz2 |
target/riscv/insn_trans/trans_rvv.c.inc: use 'vlenb' in MAXSZ()
Calculate the maximum vector size possible, 'max_sz', which is the size
in bytes 'vlenb' multiplied by the max value of LMUL (LMUL = 8, when
s->lmul = 3).
'max_sz' is then shifted right by 'scale', expressed as '3 - s->lmul',
which is clearer than doing 'scale = lmul - 3' and then using '-scale'
in the shift right.
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240122161107.26737-10-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'ui/input-keymap.c')
0 files changed, 0 insertions, 0 deletions