Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(vf): vfclass should not set xstatus.FS to dirty
  • Loading branch information
Tang-Haojin committed Oct 22, 2024
commit 8c737f63197b6233d16679b8e93de53fd8931f91
12 changes: 8 additions & 4 deletions src/isa/riscv64/instr/rvv/vcompute_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,8 +1090,10 @@ void floating_arthimetic_instr(int opcode, int is_signed, int widening, int dest
}
check_vstart_exception(s);
if(check_vstart_ignore(s)) {
fp_set_dirty();
vp_set_dirty();
if (opcode != FCLASS) {
fp_set_dirty();
vp_set_dirty();
}
return;
}
for(word_t idx = vstart->val; idx < vl->val; idx ++) {
Expand Down Expand Up @@ -1259,8 +1261,10 @@ void floating_arthimetic_instr(int opcode, int is_signed, int widening, int dest

rtl_li(s, s0, 0);
vcsr_write(IDXVSTART, s0);
fp_set_dirty();
vp_set_dirty();
if (opcode != FCLASS) {
fp_set_dirty();
vp_set_dirty();
}
}

void mask_instr(int opcode, Decode *s) {
Expand Down