Skip to content

Commit

Permalink
Merge pull request #56 from ksco/fix-loadpair
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooper-Qu authored Sep 4, 2024
2 parents c79b6e5 + 9edfb1b commit 3c71793
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xtheadmempair/ldd.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ case the whole instruction will be re-executed.
Operation::
[source,sail]
--
if (rs1 != rd1 && rs != rd2 && rd1 != rd2) {
if (rs1 != rd1 && rs1 != rd2 && rd1 != rd2) {
addr := rs1 + (zero_extend(imm2) << 4)
tmp1 := mem[addr+7:addr]
tmp2 := mem[addr+15:addr+8]
Expand Down
2 changes: 1 addition & 1 deletion xtheadmempair/lwd.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ case the whole instruction will be re-executed.
Operation::
[source,sail]
--
if (rs1 != rd1 && rs != rd2 && rd1 != rd2) {
if (rs1 != rd1 && rs1 != rd2 && rd1 != rd2) {
addr := rs1 + (zero_extend(imm2) << 3)
tmp1 := sign_extend(mem[addr+3:addr])
tmp2 := sign_extend(mem[addr+7:addr+4])
Expand Down
2 changes: 1 addition & 1 deletion xtheadmempair/lwud.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ case the whole instruction will be re-executed.
Operation::
[source,sail]
--
if (rs1 != rd1 && rs != rd2 && rd1 != rd2) {
if (rs1 != rd1 && rs1 != rd2 && rd1 != rd2) {
addr := rs1 + (zero_extend(imm2) << 3)
tmp1 := zero_extend(mem[addr+3:addr])
tmp2 := zero_extend(mem[addr+7:addr+4])
Expand Down

0 comments on commit 3c71793

Please sign in to comment.