Skip to content

Commit

Permalink
Remove repeated verbage from prior section.
Browse files Browse the repository at this point in the history
Co-authored-by: Hans Boehm <[email protected]>
Signed-off-by: Patrick O'Neill <[email protected]>
  • Loading branch information
patrick-rivos and hboehm committed Aug 7, 2023
1 parent ea84a0e commit 8cf4fdf
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions riscv-atomic.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -151,24 +151,15 @@ mappings with code generated by a compiler using those older mappings.
== Ztso atomics mappings

This specifies additional mappings of C and C\++ atomic operations to RISC-V
machine instructions. Other languages, for example Java, provide similar
facilities that should be implemented in a consistent manner, usually
by applying the mapping for the corresponding C++ primitive.
machine instructions.

For each construct, we provide a mapping that assumes only the A and Ztso
extension.

All mappings interoperate correctly with the RVWMO mappings, and with the
original "Table A.6" mappings.

We present the mappings as a table in 3 sections. The first
deals with translations for loads, stores, and fences. The next two sections
address mappings for read-modify-write operations like `fetch_add`, and
`exchange`. The second section deals with operations that have direct
`amo` instruction equivalents in the RISC-V A extension. The final
section deals with other read-modify-write operations that require
the `lr` and `sc` instructions.

We present the mappings as a table in 3 sections, as above.

[[tab:c11mappingsztso]]
.Mappings with Ztso extension from C/C++ primitives to RISC-V primitives
Expand Down

0 comments on commit 8cf4fdf

Please sign in to comment.