Skip to content

Commit

Permalink
rv64v: fix agnostic of vlm.v
Browse files Browse the repository at this point in the history
  • Loading branch information
weidingliu authored and Ziyue-Zhang committed Jan 22, 2024
1 parent 9f44058 commit e7903f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/isa/riscv64/instr/rvv/vcommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "vcommon.h"
uint8_t check_vstart_ignore(Decode *s) {
if(vstart->val >= vl->val) {
Log("vstart=%lu vl=%lu", vstart->val, vl->val);
// Log("vstart=%lu vl=%lu", vstart->val, vl->val);
if(vstart->val > 0) {
rtl_li(s, s0, 0);
vcsr_write(IDXVSTART, s0);
Expand Down
2 changes: 1 addition & 1 deletion src/isa/riscv64/instr/rvv/vldst_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void vld(int mode, int is_signed, Decode *s, int mmu_mode) {

if (RVV_AGNOSTIC && vtype->vta) { // set tail of vector register to 1
int vlmax = get_vlen_max(eew, vtype->vlmul, 0);
for(idx = vl->val; idx < vlmax; idx++) {
for(idx = vl_val; idx < vlmax; idx++) {
tmp_reg[1] = (uint64_t) -1;
for (fn = 0; fn < nf; fn++) {
set_vreg(vd + fn * emul, idx, tmp_reg[1], eew, vtype->vlmul, 1);
Expand Down

0 comments on commit e7903f4

Please sign in to comment.