Skip to content

Commit

Permalink
Merge pull request #1293 from riscv/kersten1-patch-2
Browse files Browse the repository at this point in the history
Old PR - Add initial value of Figure A.13
  • Loading branch information
kersten1 committed Apr 24, 2024
2 parents aa0572c + 6662706 commit a6ecaa1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/mm-eplan.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ no effect on the global memory order.
|
[%autowidth,cols="^,<,^,<",float="center",align="center"]
!===
4+!Initial values: 0(s0)=1; 0(s1)=1
4+!Initial values: 0(s0)=1; 0(s2)=1
4+!
2+^!Hart 0 2+^!Hart 1
!(a) !ld a0,0(s0) !(e) !ld a3,0(s2)
Expand Down Expand Up @@ -1438,7 +1438,9 @@ RVWMO Mapping:
(c) sd x0,0(s1)
....
loop:
(d) amoswap.d.aq a1,t1,0(s1)
(d) lr.d.aq a1,(s1)
bnez a1,loop
sc.d a1,t1,(s1)
bnez a1,loop
(e) lw a2,0(s2)
----
Expand Down Expand Up @@ -1746,10 +1748,10 @@ a! image::graphviz/litmus_subsumption.png[]
As written, if the load (d) reads value _1_, then (a) must
precede (f) in the global memory order:

* (a) precedes (c) in the global memory order because of rule 2
* (a) precedes (c) in the global memory order because of rule 4
* (c) precedes (d) in the global memory order because of the Load
Value axiom
* (d) precedes (e) in the global memory order because of rule 7
* (d) precedes (e) in the global memory order because of rule 10
* (e) precedes (f) in the global memory order because of rule 1

In other words the final value of the memory location whose address is
Expand Down

0 comments on commit a6ecaa1

Please sign in to comment.