mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-28 01:35:33 +03:00
[arm] Fix non-semantics instruction matcher to return Nothing when unrecognized.
This commit is contained in:
parent
54f87526e7
commit
acb8812d68
@ -197,7 +197,7 @@ a32InstructionMatcher (ARMDis.Instruction opc operands) =
|
||||
ARMDis.SVC -> case operands of
|
||||
ARMDis.Pred _opPred ARMDis.:< ARMDis.Imm24b imm ARMDis.:< ARMDis.Nil ->
|
||||
Just $ G.finishWithTerminator (MCB.ArchTermStmt (ARMSyscall imm))
|
||||
-- _ -> Nothing
|
||||
_ -> Nothing
|
||||
|
||||
-- | Manually-provided semantics for T32 (thumb) instructions whose full
|
||||
-- semantics cannot be expressed in our semantics format.
|
||||
@ -212,4 +212,4 @@ t32InstructionMatcher (ThumbDis.Instruction opc operands) =
|
||||
ThumbDis.TSVC -> case operands of
|
||||
ThumbDis.Imm0_255 imm ThumbDis.:< ThumbDis.Nil ->
|
||||
Just $ G.finishWithTerminator (MCB.ArchTermStmt (ThumbSyscall $ ThumbDis.Imm0_255 imm))
|
||||
-- _ -> Nothing
|
||||
_ -> Nothing
|
||||
|
Loading…
Reference in New Issue
Block a user