aboutsummaryrefslogtreecommitdiff
path: root/src/a.tex
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-07-21 01:50:04 -0700
committerAndrew Waterman <andrew@sifive.com>2017-07-21 01:53:04 -0700
commit54d62e4f80a4d891e82d6ea7a4fbc778aa348b60 (patch)
treef0e7b21ffdda425db0a43842112f70aaf5f7c220 /src/a.tex
parentb1acc301a3995e64bc8c1bf8bb094bf8b20d8912 (diff)
downloadriscv-isa-manual-54d62e4f80a4d891e82d6ea7a4fbc778aa348b60.zip
riscv-isa-manual-54d62e4f80a4d891e82d6ea7a4fbc778aa348b60.tar.gz
riscv-isa-manual-54d62e4f80a4d891e82d6ea7a4fbc778aa348b60.tar.bz2
Fix description of LR/SC for data size
LR.D/SC.W and LR.W/SC.D aren't guaranteed to succeed.
Diffstat (limited to 'src/a.tex')
-rw-r--r--src/a.tex7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/a.tex b/src/a.tex
index 4e9e737..cfb6ae9 100644
--- a/src/a.tex
+++ b/src/a.tex
@@ -168,9 +168,10 @@ loads, stores, backward jumps or taken backward branches, FENCE,
FENCE.I, and SYSTEM instructions. The code to retry a failing LR/SC
sequence can contain backward jumps and/or branches to repeat the
LR/SC sequence, but otherwise has the same constraints. The SC must
-be to the same address as the latest LR executed. LR/SC sequences
-that do not meet these constraints might complete on some attempts on
-some implementations, but there is no guarantee of eventual success.
+be to the same address and of the same data size as the latest LR
+executed. LR/SC sequences that do not meet these constraints might
+complete on some attempts on some implementations, but there is no
+guarantee of eventual success.
\begin{commentary}
One advantage of CAS is that it guarantees that some hart eventually