From 74b220698fb1a46e0279bba244de8b8ac3348403 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Mon, 18 May 2020 21:00:47 -0700 Subject: rvv: fix compiler warning Signed-off-by: Chih-Min Chao --- riscv/decode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscv/decode.h') diff --git a/riscv/decode.h b/riscv/decode.h index 2bd11a6..f547ec8 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -1707,7 +1707,7 @@ for (reg_t i = 0; i < P.VU.vlmax && P.VU.vl != 0; ++i) { \ const reg_t baseAddr = RS1; \ const reg_t vd = insn.rd(); \ const reg_t rs2_num = insn.rs2(); \ - require(P.VU.vsew >= xlen && P.VU.vsew <= xlen); \ + require(P.VU.vsew >= P.get_xlen() && P.VU.vsew <= P.get_xlen()); \ for (reg_t i = P.VU.vstart; i < vl; ++i) { \ VI_ELEMENT_SKIP(i); \ VI_STRIP(i); \ -- cgit v1.1