Skip to content

Commit

Permalink
Merge branch 'testing' into sail
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingkai-Li committed Aug 2, 2023
2 parents 96e9a4a + f233dd9 commit 0e50be1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parts/mem-access-insn.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The STC instruction stores a capability to the memory.
{reg: [
{bits: 7, name: '0b1011011'},
{bits: 5, name: 'imm[4:0] (S)' },
{bits: 3, name: '0b110' },
{bits: 3, name: '0b100' },
{bits: 5, name: 'rs1 (C)' },
{bits: 5, name: 'rs2 (C)' },
{bits: 7, name: 'imm[11:5] (S)' }
Expand Down Expand Up @@ -164,13 +164,13 @@ write `cnull` to the memory location `[x[rs1] + imm, x[rs1] + imm + CLENBYTES)`.
When `cwrld` is `0` (normal world) and `emode` is `0` (integer encoding mode),
the STC instruction stores a capability to the normal memory using raw addresses.

.STC instruction format
.STC instruction format in integer encoding mode
[wavedrom,,svg]
....
{reg: [
{bits: 7, name: '0b1011011'},
{bits: 5, name: 'imm[4:0] (S)' },
{bits: 3, name: '0b110' },
{bits: 3, name: '0b100' },
{bits: 5, name: 'rs1 (I)' },
{bits: 5, name: 'rs2 (C)' },
{bits: 7, name: 'imm[11:5] (S)' }
Expand Down

0 comments on commit 0e50be1

Please sign in to comment.