[arm] Added ExtractValue for Thumb AddrModeIs4 operand.

This commit is contained in:
Kevin Quick 2018-03-11 10:34:44 -07:00
parent c50f01efef
commit b0205af9ff
No known key found for this signature in database
GPG Key ID: E6D7733599CC0A21

View File

@ -100,6 +100,9 @@ instance ExtractValue ARM.ARM T32Operand.Reglist (BVType 32) where
instance ExtractValue ARM.ARM T32Operand.TImm01020S4 (BVType 8) where
extractValue = return . MC.BVValue NR.knownNat . toInteger . T32Operand.tImm01020S4ToBits
instance ExtractValue ARM.ARM T32Operand.AddrModeIs4 (BVType 32) where
extractValue = return . MC.BVValue NR.knownNat . toInteger . T32Operand.addrModeIs4ToBits
instance ExtractValue ARM.ARM T32Operand.LowGPR (BVType 32) where
extractValue r = G.getRegValue (Reg.ARM_GP $ T32Operand.unLowGPR r)