aboutsummaryrefslogtreecommitdiff
path: root/riscv/decode.h
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-05-13 20:31:13 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-05-13 22:08:50 -0700
commite792aae0a95f4f4d12f9bcbc7da81db1d912ca8d (patch)
treeb6ad74452aebf760b172c5cf3dbf8a32e00cd139 /riscv/decode.h
parent7e75ab9f7417a1c31b1f97bd69a9683251b5224a (diff)
downloadspike-e792aae0a95f4f4d12f9bcbc7da81db1d912ca8d.zip
spike-e792aae0a95f4f4d12f9bcbc7da81db1d912ca8d.tar.gz
spike-e792aae0a95f4f4d12f9bcbc7da81db1d912ca8d.tar.bz2
rvv: change to 0.9amo
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/decode.h')
-rw-r--r--riscv/decode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/decode.h b/riscv/decode.h
index d4db8e7..218df98 100644
--- a/riscv/decode.h
+++ b/riscv/decode.h
@@ -1708,11 +1708,11 @@ for (reg_t i = 0; i < P.VU.vlmax && P.VU.vl != 0; ++i) { \
//
// vector: amo
//
-#define VI_AMO(op, type) \
+#define VI_AMO(op, type, idx_type) \
require_vector; \
require_extension(EXT_ZVAMO); \
VI_CHECK_SSS(false); \
- VI_DUPLICATE_VREG(insn.rs2(), P.VU.vlmax); \
+ VI_DUPLICATE_VREG(insn.rs2(), idx_type); \
const reg_t vl = P.VU.vl; \
const reg_t baseAddr = RS1; \
const reg_t vd = insn.rd(); \