Skip to content

Commit

Permalink
Preclude UXLEN > SXLEN
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Apr 28, 2023
1 parent 8cb9301 commit a84a261
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/machine.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ zero. Otherwise, it is a *WARL* field that encodes the current value of UXLEN.
In particular, an implementation may make UXL be a read-only field whose
value always ensures that UXLEN=MXLEN or UXLEN=SXLEN.

The set of legal values that the SXL field may assume excludes those that would
cause UXLEN to be greater than SXLEN.

Whenever XLEN in any mode is set to a value less than the widest
supported XLEN, all operations must ignore source operand register bits
above the configured XLEN, and must sign-extend results to fill the
Expand Down
3 changes: 2 additions & 1 deletion src/priv-preface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ version 1.12:

* Defined the `misa`.V field to reflect that the V extension has been
implemented.
* Clarified that MXLEN≥SXLEN.
* Clarified that MXLEN≥SXLEN, and added the constraint that
SXLEN≥UXLEN.

*_Preface to Version 20211203_*

Expand Down

0 comments on commit a84a261

Please # to comment.