summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Norton2018-07-12 15:54:11 +0100
committerRobert Norton2018-07-12 15:54:15 +0100
commit79ecf8b83b06a6bd1330e1f243826cbe951a9e7d (patch)
tree5d3b76bdc57d48af47a37bc5580f2d88d1997c2a /lib
parent8195ac7e4d851e9901bfaae92997ea51914c09b2 (diff)
update arm and mips models for new type of write_ram builtin. Also fix c and interpreter implementations of same.
Diffstat (limited to 'lib')
-rw-r--r--lib/rts.c4
-rw-r--r--lib/rts.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rts.c b/lib/rts.c
index 84ff4916..97aad8a4 100644
--- a/lib/rts.c
+++ b/lib/rts.c
@@ -208,7 +208,7 @@ void kill_mem()
// ***** Memory builtins *****
-unit write_ram(const mpz_t addr_size, // Either 32 or 64
+bool write_ram(const mpz_t addr_size, // Either 32 or 64
const mpz_t data_size_mpz, // Number of bytes
const sail_bits hex_ram, // Currently unused
const sail_bits addr_bv,
@@ -231,7 +231,7 @@ unit write_ram(const mpz_t addr_size, // Either 32 or 64
}
mpz_clear(buf);
- return UNIT;
+ return true;
}
void read_ram(sail_bits *data,
diff --git a/lib/rts.h b/lib/rts.h
index cedb555e..98bbd078 100644
--- a/lib/rts.h
+++ b/lib/rts.h
@@ -53,7 +53,7 @@ uint64_t read_mem(uint64_t);
// These memory builtins are intended to match the semantics for the
// __ReadRAM and __WriteRAM functions in ASL.
-unit write_ram(const mpz_t addr_size, // Either 32 or 64
+bool write_ram(const mpz_t addr_size, // Either 32 or 64
const mpz_t data_size_mpz, // Number of bytes
const sail_bits hex_ram, // Currently unused
const sail_bits addr_bv,