Skip to content

Commit

Permalink
Merge pull request #27 from ved-rivos/amocas
Browse files Browse the repository at this point in the history
Indicate amocas ignores bits beyond operation width in rd
  • Loading branch information
ved-rivos authored Feb 3, 2024
2 parents d300b0a + e356c1c commit b695fdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zabha.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ further provides the `AMOCAS.[B|H]` instructions.

Byte and halfword AMOs always sign-extend the value placed in `rd`, and
ignore the `XLEN-1:(2^(width + 3))` bits of the original value in `rs2`.
The `AMOCAS.[B|H]` instructions similarly ignore the `XLEN-1:(2^(width + 3))`
bits of the original value in `rd`.

Similar to the AMOs specified in the A extension, the Zabha extension mandates
that the address contained in the `rs1` register must be naturally aligned to
Expand Down

0 comments on commit b695fdd

Please sign in to comment.