Skip to content
Snippets Groups Projects
Commit d6c4d3f2 authored by Frank Chang's avatar Frank Chang Committed by Alistair Francis
Browse files

target/riscv: rvv-1.0: trigger illegal instruction exception if frm is not valid


If the frm field contains an invalid rounding mode (101-111),
attempting to execute any vector floating-point instruction, even
those that do not depend on the rounding mode, will raise an illegal
instruction exception.

Call gen_set_rm() with DYN rounding mode to check and trigger illegal
instruction exception if frm field contains invalid value at run-time
for vector floating-point instructions.

Signed-off-by: default avatarFrank Chang <frank.chang@sifive.com>
Acked-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Message-Id: <20211210075704.23951-68-frank.chang@sifive.com>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent f714361e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment