diff options
author | Dave.Wen <dave.wen@sifive.com> | 2020-05-13 23:42:05 -0700 |
---|---|---|
committer | Dave.Wen <dave.wen@sifive.com> | 2020-05-13 23:42:53 -0700 |
commit | b7eafcad7280ab75a6b11ed4df3bb57c1bea1b1b (patch) | |
tree | 11db027259064ed0242313326e59f4f7b400d723 | |
parent | 85f930d88656856c780dfc6fd3d9cbfb14c8c0e1 (diff) | |
download | spike-b7eafcad7280ab75a6b11ed4df3bb57c1bea1b1b.zip spike-b7eafcad7280ab75a6b11ed4df3bb57c1bea1b1b.tar.gz spike-b7eafcad7280ab75a6b11ed4df3bb57c1bea1b1b.tar.bz2 |
rvv: wrong operation to the fractional LMUL bit
-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 218df98..27a449d 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -119,7 +119,7 @@ public: uint64_t v_zimm11() { return x(20, 11); } uint64_t v_lmul() { return 1 << x(20, 2); } uint64_t v_sew() { return 1 << (x(22, 3) + 3); } - uint64_t v_frac_lmul() { return 1 << x(25, 1); } + uint64_t v_frac_lmul() { return x(25, 1); } uint64_t v_width() { return x(12, 3); } uint64_t v_mop() { return x(26, 2); } uint64_t v_lumop() { return x(20, 5); } |