summaryrefslogtreecommitdiff
path: root/src/test/test4.sail
diff options
context:
space:
mode:
authorKathy Gray2014-08-01 17:47:38 +0100
committerKathy Gray2014-08-01 17:47:38 +0100
commitd08142bfe05ec33f43e3d42a92a4c7f21e3be954 (patch)
tree9580d9a715cf4a78f68a476bf0d4dba0fabc43dd /src/test/test4.sail
parent06b8c94efec32f81ee63031f2996563ecc45d00a (diff)
Support separated memory read/write functions.
Also allows register writing functions to be on the left hand side of an assignment in the same way. The last parameter to a writing function is the value to be written, and should appear on the right hand side of an assignment expression.
Diffstat (limited to 'src/test/test4.sail')
-rw-r--r--src/test/test4.sail2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test4.sail b/src/test/test4.sail
index 36cb271a..fa0133ca 100644
--- a/src/test/test4.sail
+++ b/src/test/test4.sail
@@ -1,5 +1,5 @@
(* hack to display log messages. Syntax: LOG(0) := "log message"; *)
-val extern forall Type 'a . nat -> 'a effect { wmem , rmem } LOG
+val extern forall Type 'a . (nat, 'a) -> unit effect { wmem } LOG
register (bit[1]) GPR0
register (bit[1]) GPR1