summaryrefslogtreecommitdiff
path: root/src/state.ml
diff options
context:
space:
mode:
authorAlasdair Armstrong2019-01-11 21:00:36 +0000
committerAlasdair Armstrong2019-01-11 21:00:36 +0000
commit9cfa575245a0427a0d35504086de182bd80b7df8 (patch)
tree8ac466188cfad342a35afb1557110a6ee882baaa /src/state.ml
parent05e6058795e71cf1543e282752cbf95e471894cc (diff)
Updates for sail-arm release
We want to ensure that no_devices.sail and devices.sail have the same effect footprint, because with a snapshot-type release in sail-arm, we can't rebuild the spec with asl_to_sail every time we switch from running elf binaries to booting OS's. This commit allows registers to have arbitrary effects, so registers that are really representing memory-mapped devices don't have to have the wmem/rmem effect.
Diffstat (limited to 'src/state.ml')
-rw-r--r--src/state.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.ml b/src/state.ml
index 63a07c0e..fb065440 100644
--- a/src/state.ml
+++ b/src/state.ml
@@ -69,7 +69,7 @@ let find_registers defs =
List.fold_left
(fun acc def ->
match def with
- | DEF_reg_dec (DEC_aux(DEC_reg (typ, id), (_, tannot))) ->
+ | DEF_reg_dec (DEC_aux(DEC_reg (_, _, typ, id), (_, tannot))) ->
let env = match destruct_tannot tannot with
| Some (env, _, _) -> env
| _ -> Env.empty