summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Norton2017-08-02 14:24:52 +0100
committerRobert Norton2017-08-02 14:24:52 +0100
commit3ee583761a8b7801d0870c0b47e050ac5c8851cd (patch)
tree412d939b9c298118ab9ae3f1e55a1772bfd931e0
parent0da449b2fdf892d485f700d33620d31802944ef6 (diff)
fix sail library test interpreter glue for API change. Also fix build_context val spec which was out of dated although lem did not complain for some reason...
-rw-r--r--src/lem_interp/interp_interface.lem2
-rw-r--r--src/test/lib/run_test_interp.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lem_interp/interp_interface.lem b/src/lem_interp/interp_interface.lem
index 937db466..dcc9f537 100644
--- a/src/lem_interp/interp_interface.lem
+++ b/src/lem_interp/interp_interface.lem
@@ -259,7 +259,7 @@ type outcome =
(* Functions to build up the initial state for interpretation *)
-val build_context : specification -> memory_reads -> memory_read_taggeds-> memory_writes -> memory_write_eas -> memory_write_vals -> memory_write_vals_tagged -> barriers -> excl_res -> external_functions -> context
+val build_context : bool -> specification -> memory_reads -> memory_read_taggeds-> memory_writes -> memory_write_eas -> memory_write_vals -> memory_write_vals_tagged -> barriers -> excl_res -> external_functions -> context
val initial_instruction_state : context -> string -> list register_value -> instruction_state
(* string is a function name, list of value are the parameters to that function *)
diff --git a/src/test/lib/run_test_interp.ml b/src/test/lib/run_test_interp.ml
index 3446ef9f..5f2ace1b 100644
--- a/src/test/lib/run_test_interp.ml
+++ b/src/test/lib/run_test_interp.ml
@@ -45,7 +45,7 @@ open Interp_inter_imp ;;
open Sail_impl_base ;;
let doit () =
- let context = build_context Test_lem_ast.defs [] [] [] [] [] [] [] None [] in
+ let context = build_context false Test_lem_ast.defs [] [] [] [] [] [] [] None [] in
translate_address context E_little_endian "run" None (address_of_integer (Nat_big_num.of_int 0));;
doit () ;;