]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - cpu/cris.cpu
* cris.cpu (cris-set-mem): Correct integral write semantics.
[thirdparty/binutils-gdb.git] / cpu / cris.cpu
index 6bfa539f90c4b17442efd25e1151657453260e48..955ad3218956f0e8e864d6ce6ac406edc5fff786 100644 (file)
            (sequence
              ()
              (set (mem size addr) value)
-             (set cbit 0))
+             ; 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))