diff options
| author | Robert Norton | 2018-07-12 15:54:11 +0100 |
|---|---|---|
| committer | Robert Norton | 2018-07-12 15:54:15 +0100 |
| commit | 79ecf8b83b06a6bd1330e1f243826cbe951a9e7d (patch) | |
| tree | 5d3b76bdc57d48af47a37bc5580f2d88d1997c2a /lib | |
| parent | 8195ac7e4d851e9901bfaae92997ea51914c09b2 (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.c | 4 | ||||
| -rw-r--r-- | lib/rts.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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, @@ -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, |
