diff options
author | Dave.Wen <dave.wen@sifive.com> | 2020-05-14 01:50:57 -0700 |
---|---|---|
committer | Dave.Wen <dave.wen@sifive.com> | 2020-05-14 01:50:57 -0700 |
commit | 96c8268cd19da0e005dc5f61f3351e1af7cadd30 (patch) | |
tree | c00e678c89e7d81f0e633d59a6a4c2270c57162b /riscv/decode.h | |
parent | b7eafcad7280ab75a6b11ed4df3bb57c1bea1b1b (diff) | |
download | spike-96c8268cd19da0e005dc5f61f3351e1af7cadd30.zip spike-96c8268cd19da0e005dc5f61f3351e1af7cadd30.tar.gz spike-96c8268cd19da0e005dc5f61f3351e1af7cadd30.tar.bz2 |
rvv: fix the fractional lmul
Diffstat (limited to 'riscv/decode.h')
-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 27a449d..93f1ff0 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -117,7 +117,7 @@ public: uint64_t v_simm5() { return xs(15, 5); } uint64_t v_zimm5() { return x(15, 5); } uint64_t v_zimm11() { return x(20, 11); } - uint64_t v_lmul() { return 1 << x(20, 2); } + uint64_t v_lmul() { return x(20, 2); } uint64_t v_sew() { return 1 << (x(22, 3) + 3); } uint64_t v_frac_lmul() { return x(25, 1); } uint64_t v_width() { return x(12, 3); } |