aarch64 haskell: prefer fail over error
`error` is mapped to `undefined` which does not work well with `crunch`. `fail` is mapped to monadic `fail` in Isabelle, works fine with crunch and we have to prove that it's not called in `corres`. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
This commit is contained in:
parent
4834c2589a
commit
f3bbd47537
|
@ -407,7 +407,7 @@ loadVMID asid = do
|
|||
maybeEntry <- getASIDPoolEntry asid
|
||||
case maybeEntry of
|
||||
Just (ASIDPoolVSpace vmID ptr) -> return vmID
|
||||
_ -> error ("loadVMID: no entry for asid")
|
||||
_ -> fail "loadVMID: no entry for asid"
|
||||
|
||||
invalidateASID :: ASID -> Kernel ()
|
||||
invalidateASID = updateASIDPoolEntry (\entry -> Just $ entry { apVMID = Nothing })
|
||||
|
|
Loading…
Reference in New Issue