chipsalliance/VeeR-ISS

Regarding csrrw instruction fail in case of write/swap to FRM

UrvishkumarPatel opened this issue · 1 comments

In function
CsRegs::updateFcsrGroupForWrite(CsrNumber number, URV value)

for
(number == CsrNumber::FRM)

setSimulatorRoundingMode(RoundingMode(value));

must be replaced by the following:

setSimulatorRoundingMode(RoundingMode((fcsrVal >> shift)));