aboutsummaryrefslogtreecommitdiff
path: root/cpu/cris.cpu
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/cris.cpu')
-rw-r--r--cpu/cris.cpu5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpu/cris.cpu b/cpu/cris.cpu
index 6bfa539..955ad32 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))