Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stval/stval2 for HS-mode exceptions, not htval/htval2 #483

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions src/hypervisor-integration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,36 +56,6 @@ The reset value is 0.
Bit 28 of <<hedeleg>> now refers to a valid exception and so can be used to
delegate CHERI exceptions to virtual supervisor mode.

[#htval,reftext="htval"]
=== Hypervisor Trap Value Register (htval)

The <<htval>> register operates as described in cite:[riscv-priv-spec].

<<htval>> is updated following the same rules as <<mtval>> for CHERI exceptions
which are taken in HS-mode.

.Hypervisor trap value register
include::img/htvalreg.edn[]

[#htval2,reftext="htval2"]
=== Hypervisor Trap Value Register 2 (htval2)

The <<htval2>> register is an HSXLEN-bit read-write register, which is added as
part of {cheri_base_ext_name} when the hypervisor extension is supported. Its
CSR address is 0x64b.

<<htval2>> is updated following the same rules as <<mtval2>> for CHERI exceptions,
load page fault and store page fault exceptions which are taken in HS-mode.

The fields are identical to <<mtval2>> for CHERI exceptions.

NOTE: <<htval2>> is not a standard RISC-V CSR, but <<mtval2>>
is.

.Hypervisor trap value register 2
[#hstval2-format]
include::img/htval2reg.edn[]

[#vsstatus,reftext="vsstatus"]
=== Virtual Supervisor Status Register (vsstatus)

Expand Down
20 changes: 0 additions & 20 deletions src/img/htval2reg.edn

This file was deleted.

14 changes: 0 additions & 14 deletions src/img/htvalreg.edn

This file was deleted.

Loading