Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Fix amd64 notify
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga committed Nov 17, 2023
1 parent a5e2bb5 commit 9b9b221
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/engine/compiler/impl_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -5042,6 +5042,8 @@ func (c *amd64Compiler) compileAtomicMemoryNotify(o *wazeroir.UnionOperation) er
return err
}
c.compileMemoryAlignmentCheck(reg, 4)
c.assembler.CompileRegisterToRegister(amd64.ADDQ, amd64ReservedRegisterForMemory, reg)
c.assembler.CompileConstToRegister(amd64.ADDQ, -4, reg)

// Push address and count back to read in Go
c.pushRuntimeValueLocationOnRegister(reg, runtimeValueTypeI64)
Expand Down

0 comments on commit 9b9b221

Please # to comment.