Skip to content

Commit

Permalink
Merge branch 'ved-rivos-1101'
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Nov 2, 2024
2 parents 4a428b0 + 37d7e46 commit 6114bf9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
7 changes: 4 additions & 3 deletions src/smstateen.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ read-only).
{bits: 1, name: 'C'},
{bits: 1, name: 'FCSR'},
{bits: 1, name: 'JVT'},
{bits: 53, name: 'WPRI'},
{bits: 52, name: 'WPRI'},
{bits: 1, name: 'P1P14'},
{bits: 1, name: 'P1P13'},
{bits: 1, name: 'CONTEXT'},
{bits: 1, name: 'IMSIC'},
Expand Down Expand Up @@ -288,8 +289,8 @@ extension.
The P1P13 bit in `mstateen0` controls access to the `hedelegh` introduced by
Privileged Specification Version 1.13.

//The P1P14 bit in mstateen0 controls access to the srmcfg CSR introduced by
//Privileged Specification Version 1.14.
The P1P14 bit in `mstateen0` controls access to the `srmcfg` CSR introduced by
the Ssqosid <<ssqosid>> extension.

=== Usage

Expand Down
14 changes: 6 additions & 8 deletions src/supervisor.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2271,8 +2271,7 @@ Invalid PTEs using a bounded timer, or making address-translation caches
coherent with store instructions that modify PTEs.
====

////
[[sec:ssqosid]]
[[ssqosid]]
== "Ssqosid" Extension for Quality-of-Service (QoS) Identifiers, Version 1.0

Quality of Service (QoS) is defined as the minimal end-to-end performance
Expand Down Expand Up @@ -2354,11 +2353,11 @@ modes of software execution on that hart by default, but this behavior may be
overridden by future extensions.

If extension Smstateen is implemented together with Ssqosid, then Ssqosid also
requires the bit 55 in `mstateen0` introduced by Priv 1.14 to be implemented. If
bit 55 of `mstateen0` is 0, attempts to access `srmcfg` in privilege modes less
privileged than M-mode raise an illegal-instruction exception. If bit 55 of
`mstateen0` is 1 or if extension Smstateen is not implemented, attempts to
access `srmcfg` when `V=1` raise a virtual-instruction exception.
requires the P1P14 bit in `mstateen0` to be implemented.
If P1P14 of `mstateen0` is 0, attempts to access `srmcfg` in privilege modes
less privileged than M-mode raise an illegal-instruction exception.
If P1P14 bit of `mstateen0` is 1 or if extension Smstateen is not implemented,
attempts to access `srmcfg` when `V=1` raise a virtual-instruction exception.

[NOTE]
====
Expand Down Expand Up @@ -2394,4 +2393,3 @@ the new context, it switches to the new VM's `srmcfg`. The supervisor can also
use a separate configuration for execution not to be attributed to either
contexts.
====
////

0 comments on commit 6114bf9

Please sign in to comment.