diff options
-rw-r--r-- | riscv/decode.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); \ |