Skip to content

Commit

Permalink
Clarify mtval wording (#468)
Browse files Browse the repository at this point in the history
The wording in this sentence was a bit ambiguous whether "it" referred
to `mtval` or `mtval2`. It only made sense if it referred to `mtval`,
but it's better if it's explicitly clear to avoid confusion.

Co-authored-by: Tom Aird <[email protected]>
  • Loading branch information
tomaird and Tom Aird authored Dec 10, 2024
1 parent 6ba6228 commit 4e8651d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riscv-integration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ a CHERI fault taken into M-mode, <<mtval>> is written with the
MXLEN-bit effective address which caused the fault according to the existing
rules for reporting load/store addresses from cite:[riscv-priv-spec]. In this case
the TYPE field of <<mtval2>> shown in xref:mtval2-cheri-type[xrefstyle=short] is
set to {cheri_excep_type_data}. For all other CHERI faults it is set to zero.
set to {cheri_excep_type_data}. For all other CHERI faults <<mtval>> is set to zero.

The behavior of <<mtval>> is otherwise as described in cite:[riscv-priv-spec].

Expand Down

0 comments on commit 4e8651d

Please sign in to comment.