Skip to content

Commit aa6a47e

Browse files
committed
minor update
1 parent 115ff2b commit aa6a47e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sim/simx/execute_v.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2438,9 +2438,9 @@ void Emulator::loadVector(const Instr &instr, uint32_t wid, std::vector<reg_data
24382438
std::abort();
24392439
}
24402440
DP(4, "Whole vector register load with nreg: " << nreg);
2441-
uint32_t vsew_bits = 1 << (3 + instr.getVsew());
2441+
uint32_t stride = 1 << instr.getVsew();
2442+
uint32_t vsew_bits = stride * 8;
24422443
uint32_t vl = nreg * VLEN / vsew_bits;
2443-
WordI stride = instr.getVsew();
24442444
vector_op_vix_load(warp.vreg_file, this, rsdata[0][0].i, rdest, vsew_bits, vl, false, stride, 1, 0, vmask);
24452445
break;
24462446
}

0 commit comments

Comments
 (0)