This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed, cris.cpu: Correct integral write semantics.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]