mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-12-24 06:35:41 +03:00
Add a note about TranslateError
This commit is contained in:
parent
c76cd00e72
commit
38cb6cdfd8
@ -240,6 +240,11 @@ liftST = DisM . lift
|
||||
|
||||
-- | Early failure for 'DisM'. This is a wrapper around 'ET.throwError' that
|
||||
-- computes the current progress alongside the reason for the failure.
|
||||
--
|
||||
-- Note that the 'TranslateError' below is a block terminator marker that notes
|
||||
-- that translation of the basic block resulted in an error (with the exception
|
||||
-- string stored as its argument). This allows macaw to carry errors in the
|
||||
-- instruction stream, which is useful for debugging and diagnostics.
|
||||
failAt :: forall ppc s a
|
||||
. (ArchReg ppc ~ PPCReg ppc, MM.MemWidth (ArchAddrWidth ppc))
|
||||
=> GenState ppc s
|
||||
|
Loading…
Reference in New Issue
Block a user