summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2004-12-21 04:37:58 +0000
committerHans-Peter Nilsson <hp@axis.com>2004-12-21 04:37:58 +0000
commit20ab14f5597f860ff94a99cc90c32b592e8de73b (patch)
tree240cc54d3ba60365bf91e62675e3df81710ea972 /cpu
parent39947dff8c045322fed4a0e92cc58bd6aec9b23d (diff)
downloadbinutils-redhat-20ab14f5597f860ff94a99cc90c32b592e8de73b.tar.gz
* cris.cpu (cris-set-mem): Correct integral write semantics.
Diffstat (limited to 'cpu')
-rw-r--r--cpu/ChangeLog4
-rw-r--r--cpu/cris.cpu5
2 files changed, 8 insertions, 1 deletions
diff --git a/cpu/ChangeLog b/cpu/ChangeLog
index 3eef926971..ddbce32295 100644
--- a/cpu/ChangeLog
+++ b/cpu/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-21 Mikael Starvik <starvik@axis.com>
+
+ * cris.cpu (cris-set-mem): Correct integral write semantics.
+
2004-11-29 Hans-Peter Nilsson <hp@axis.com>
* cris.cpu: New file.
diff --git a/cpu/cris.cpu b/cpu/cris.cpu
index 6bfa539f90..955ad32189 100644
--- a/cpu/cris.cpu
+++ b/cpu/cris.cpu
@@ -2224,7 +2224,10 @@
(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))