Skip to content

Commit

Permalink
Merge pull request #16 from romanheros/patch-6
Browse files Browse the repository at this point in the history
Update sync_s.adoc
  • Loading branch information
Cooper-Qu authored Dec 9, 2022
2 parents 1ac74d4 + c303a80 commit 0eb3efe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions xtheadsync/sync_s.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[#xtheadsync-insns-sync-s,reftext=Synchronization barrier on all harts]
[#xtheadsync-insns-sync-s,reftext=Synchronization barrier]
==== th.sync.s

Synopsis::
Broadcasts an instruction, that ensures that all preceding instructions retire earlier than this instruction and all subsequent instructions retire later than this instruction on all harts.
Ensures that all preceding instructions retire earlier than this instruction and all subsequent instructions retire later than this instruction.

Mnemonic::
th.sync.s
Expand All @@ -21,13 +21,12 @@ Encoding::
....

Description::
This instruction ensures that all preceding instructions retire earlier than this instruction and all subsequent instructions retire later than this instruction. The instruction is executing on all harts via broadcasting.
This instruction has the same function with th.sync.

Operation::
[source,sail]
--
msg := encode_out_of_order_barrier()
broadcast_to_all_harts(msg)
out_of_order_barrier()
--

Permission::
Expand Down

0 comments on commit 0eb3efe

Please sign in to comment.