Skip to content

Commit

Permalink
Merge pull request #13 from ved-rivos/enc_clarifications
Browse files Browse the repository at this point in the history
encoding clarifications
  • Loading branch information
ved-rivos authored Nov 22, 2022
2 parents cf9b409 + 565b1a1 commit 954358b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cfi_backward.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ using the `mop.r` and `mop.rr` instructions defined by the Zimops extension.
| 2+^|`12` 2+^|`5` 2+^|`3` 2+^|`5` 2+^|`7`
|===

Encoding `rs1` as `x0` is not supported for `sspush`.
Encoding `rd` as `x0` is not supported for `sspop`.

[width=100%]
[%header, cols="6,<3,>3,<3,>3,<3,>3,<3,>3,<3,>3,<3,>3", grid=rows, frame=none]
Expand All @@ -45,6 +47,8 @@ using the `mop.r` and `mop.rr` instructions defined by the Zimops extension.
| 2+^|`7` 2+^|`5` 2+^|`5` 2+^|`3` 2+^|`5` 2+^|`7`
|===

Encoding `rd` as `x0` is not supported for `ssamoswap`.

When `menvcfg.CFI` is 0, then Zisslpcfi is not enabled for privilege modes less than
M and backward-edge CFI is not active at privilege levels less than M.

Expand Down Expand Up @@ -125,7 +129,7 @@ using shadow stacks is as follows:
:
:
sspop x5 # pop from shadow stack into x5
sschkra x1, x5 # compare link register x1 to shadow
sschkra x5, x1 # compare link register x1 to shadow
# link register x5; faults if not same
ret
Expand Down

0 comments on commit 954358b

Please sign in to comment.