Skip to content

Commit

Permalink
doc: clarify mtval register description when not enabled (#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ASintzoff authored Jun 19, 2024
1 parent 17ea494 commit 89568b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/04_cv32a65x/riscv/priv-isa-cv32a65x.html
Original file line number Diff line number Diff line change
Expand Up @@ -3972,7 +3972,8 @@ <h4 id="mcause">3.1.15. Machine Cause (<code>mcause</code>) Register</h4>
<div class="sect3">
<h4 id="_machine_trap_value_mtval_register">3.1.16. Machine Trap Value (<code>mtval</code>) Register</h4>
<div class="paragraph">
<p>[CV32A65X] The <code>mtval</code> register is an MXLEN-bit read-only 0 register.</p>
<p>[CV32A65X] The <code>mtval</code> register is an MXLEN-bit read-write register
holding constant value zero.</p>
</div>
</div>
<div class="sect3">
Expand Down
3 changes: 2 additions & 1 deletion docs/riscv-isa/src/machine.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2553,7 +2553,8 @@ _N_ is the smaller of MXLEN and ILEN.
endif::[]

ifeval::[{MTvalEn} == false]
[{ohg-config}] The `mtval` register is an MXLEN-bit read-only 0 register.
[{ohg-config}] The `mtval` register is an MXLEN-bit read-write register
holding constant value zero.
endif::[]

==== Machine Configuration Pointer (`mconfigptr`) Register
Expand Down

0 comments on commit 89568b0

Please sign in to comment.