From 978a96683a6b672ba7f3104d5ee5c214195ebcdc Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Wed, 20 May 2020 23:39:35 -0700 Subject: rvv: index should align vemul Signed-off-by: Chih-Min Chao --- riscv/decode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscv') diff --git a/riscv/decode.h b/riscv/decode.h index d679072..1c9c238 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -458,7 +458,7 @@ static inline bool is_aligned(const unsigned val, const unsigned pos) require(P.VU.vemul >= 0.125 && P.VU.vemul <= 8); \ reg_t flmul = P.VU.vflmul < 1 ? 1 : P.VU.vflmul; \ require_align(insn.rd(), P.VU.vflmul); \ - require_align(insn.rs2(), P.VU.vflmul); \ + require_align(insn.rs2(), P.VU.vemul); \ require((nf * flmul) <= (NVPR / 4) && \ (insn.rd() + nf * flmul) <= NVPR); \ -- cgit v1.1