Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions src/isa/riscv64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,11 @@ config RVV_AGNOSTIC
bool "Enable RVV agnostic policy"
default y

config RVV_UNORDER
depends on RVV
bool "Enable RVV unorder compute"
default y

config EBREAK_AS_TRAP
depends on !RV_DEBUG
bool "Treat ebreak same as nemu_trap"
Expand Down
6 changes: 3 additions & 3 deletions src/isa/riscv64/instr/rvv/vcompute.h
Original file line number Diff line number Diff line change
Expand Up @@ -971,10 +971,10 @@ def_EHelper(vfadd) {
}

def_EHelper(vfredusum) {
#ifdef CONFIG_DIFFTEST
FREDUCTION(FREDUSUM) // use ordered reduction
#else
#ifdef CONFIG_RVV_UNORDER
float_reduction_computing(s); // when NEMU is ref, use unordered reduction which is same as XiangShan
#else
FREDUCTION(FREDUSUM) // use ordered reduction
#endif
}

Expand Down