File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1698,7 +1698,7 @@ Definition run_trans_start (trans_start : TranslationStartInfo)
1698
1698
1699
1699
is_ets ← mlift (ets2 ts);
1700
1700
let vpre_t := ts.(TState.vcse) ⊔ (view_if is_ets ts.(TState.vdsb)) in
1701
- let vmax_t := length mem in
1701
+ let vmax_t := length mem + 1 in
1702
1702
time_t ← mchoosel $ seq vpre_t vmax_t;
1703
1703
1704
1704
(* lookup (successful results or faults) *)
@@ -1812,15 +1812,15 @@ Section RunOutcome.
1812
1812
| MemWrite _ _ _ => mthrow "Memory write of size other than 8, or with tags"
1813
1813
| Barrier barrier =>
1814
1814
mem ← mget PPState.mem;
1815
- Exec.liftSt (PPState.state ×× PPState.iis) $ run_barrier barrier (length mem);;
1815
+ Exec.liftSt (PPState.state ×× PPState.iis) $ run_barrier barrier (length mem + 1 );;
1816
1816
mret ((), None)
1817
1817
| TlbOp tlbi =>
1818
1818
viio ← mget (IIS.strict ∘ PPState.iis);
1819
1819
run_tlbi tid viio tlbi;;
1820
1820
mret ((), None)
1821
1821
| ReturnException =>
1822
1822
mem ← mget PPState.mem;
1823
- Exec.liftSt (PPState.state ×× PPState.iis) $ run_cse (length mem);;
1823
+ Exec.liftSt (PPState.state ×× PPState.iis) $ run_cse (length mem + 1 );;
1824
1824
mret ((), None)
1825
1825
| TranslationStart trans_start =>
1826
1826
let initmem := Memory.initial_from_memMap initmem in
@@ -1832,7 +1832,7 @@ Section RunOutcome.
1832
1832
| GenericFail s => mthrow ("Instruction failure: " ++ s)%string
1833
1833
| TakeException fault =>
1834
1834
mem ← mget PPState.mem;
1835
- Exec.liftSt (PPState.state ×× PPState.iis) $ run_take_exception fault (length mem);;
1835
+ Exec.liftSt (PPState.state ×× PPState.iis) $ run_take_exception fault (length mem + 1 );;
1836
1836
mret ((), None)
1837
1837
| _ => mthrow "Unsupported outcome".
1838
1838
You can’t perform that action at this time.
0 commit comments