riscv / riscv-isa-manual

RISC-V Instruction Set Manual
https://riscv.org/
Creative Commons Attribution 4.0 International
3.7k stars 645 forks source link

Update description of mtval2 in CSR table #1643

Closed arichardson closed 1 month ago

arichardson commented 2 months ago

While it is always a guest physical address for the hypervisor traps, when used by a double trap it holds an mcause value.

Change the description to "second trap value" to match the description used in the section heading. While touching this line also sync the description of the other CSRs in this part of the table as well as the *tval registers for the other privilege levels.

ved-rivos commented 2 months ago

I think we can also fix up stval and vstval - they also have the label from their old names sbadaddr/vsbadaddr

aswaterman commented 2 months ago

Agreed with both of @ved-rivos's comments. Ping me when it's time to merge.

arichardson commented 1 month ago

Updated.