Committed, cris.cpu: Correct integral write semantics.
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Tue Dec 21 04:41:00 GMT 2004
For the record only. Seen when experimenting with integral
writes (aka. atomic writes) in SID.
2004-12-21 Mikael Starvik <starvik@axis.com>
* cpu/cris.cpu (cris-set-mem): Correct integral write semantics.
Index: cris.cpu
===================================================================
RCS file: /n/cvsroot/tools/sid/src/cgen/cpu/cris.cpu,v
retrieving revision 1.43
diff -c -p -r1.43 cris.cpu
*** cris.cpu 29 Nov 2004 16:26:21 -0000 1.43
--- cris.cpu 21 Dec 2004 04:21:53 -0000
***************
*** 2224,2230 ****
(sequence
()
(set (mem size addr) value)
! (set cbit 0))
(set cbit 1))
(set (mem size addr) value))
--- 2224,2233 ----
(sequence
()
(set (mem size addr) value)
! ; Write failures are signalled (by whatever entity "sends
! ; the signal") by setting P at time of the write above, if X
! ; is set. Here, we just need to copy P into C.
! (set cbit pbit))
(set cbit 1))
(set (mem size addr) value))
brgds, H-P
More information about the Binutils
mailing list