Skip to content

Commit

Permalink
Fix #111 sm4ed/ks mentions rt instead of rs1
Browse files Browse the repository at this point in the history
 On branch dev/next-release
 Your branch is ahead of 'origin/dev/next-release' by 1 commit.
   (use "git push" to publish your local commits)

 Changes to be committed:
	modified:   insns/sm4ed.adoc
	modified:   insns/sm4ks.adoc

 Changes not staged for commit:
	modified:   ../../extern/riscv-gnu-toolchain (modified content)
	modified:   ../../extern/sail-riscv (untracked content)
  • Loading branch information
ben-marshall committed Aug 27, 2021
1 parent a255d6e commit 4d7a644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/scalar/insns/sm4ed.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Implements a T-tables in hardware style approach to accelerating the
SM4 round function.
A byte is extracted from `rs2` based on `bs`, to which the SBox and
linear layer transforms are applied, before the result is XOR'd with
`rt` and written back to `rd`.
`rs1` and written back to `rd`.
This instruction exists on RV32 and RV64 base architectures.
On RV64, the 32-bit result is sign extended upto XLEN bits.
This instruction must _always_ be implemented such that it's execution
Expand Down
2 changes: 1 addition & 1 deletion doc/scalar/insns/sm4ks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Implements a T-tables in hardware style approach to accelerating the
SM4 Key Schedule.
A byte is extracted from `rs2` based on `bs`, to which the SBox and
linear layer transforms are applied, before the result is XOR'd with
`rt` and written back to `rd`.
`rs1` and written back to `rd`.
This instruction exists on RV32 and RV64 base architectures.
On RV64, the 32-bit result is sign extended upto XLEN bits.
This instruction must _always_ be implemented such that it's execution
Expand Down

0 comments on commit 4d7a644

Please sign in to comment.