Unverified Commit 2e873ce9 authored by Scott Johnson's avatar Scott Johnson
Browse files

Don't write vxsat unless it's actually being set to 1

As requested by @marcfedorow:
https://github.com/riscv-software-src/riscv-isa-sim/issues/823#issuecomment-936509476

If mstatus.VS exists (i.e. Vector extension is enabled), it will no
longer be set to Dirty unless the instruction actually sets vxsat.

The mstatus.VS change only affects instructions in the P extension,
since Vector instructions will write other vector state and therefore
still set mstatus.VS=Dirty.

This also affects the commit log. Instructions that don't saturate
will no longer show a write to vxsat.
parent bcab7c19
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment