Browse Source

rvv: add missing elen checking for some ldst (#927)

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
pull/929/head
Chih-Min Chao 4 years ago
committed by GitHub
parent
commit
b3e8d381a6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      riscv/decode.h

2
riscv/decode.h

@ -556,6 +556,7 @@ static inline bool is_aligned(const unsigned val, const unsigned pos)
require_align(insn.rd(), vemul); \
require((nf * emul) <= (NVPR / 4) && \
(insn.rd() + nf * emul) <= NVPR); \
require(veew <= P.VU.ELEN); \
#define VI_CHECK_LOAD(elt_width, is_mask_ldst) \
VI_CHECK_STORE(elt_width, is_mask_ldst); \
@ -1797,6 +1798,7 @@ reg_t index[P.VU.vlmax]; \
#define VI_LD_WHOLE(elt_width) \
require_vector_novtype(true, false); \
require(sizeof(elt_width ## _t) * 8 <= P.VU.ELEN); \
const reg_t baseAddr = RS1; \
const reg_t vd = insn.rd(); \
const reg_t len = insn.v_nf() + 1; \

Loading…
Cancel
Save