add flags, ts_flags properties for Instr class
This commit is contained in:
parent
cadc53f174
commit
3c06f0d590
3 changed files with 13 additions and 2 deletions
|
|
@ -87,6 +87,18 @@ class Instr(object):
|
|||
|
||||
return l
|
||||
|
||||
@property
|
||||
def instr_desc(self):
|
||||
return self.tm.instr_info.get(self.mcinst.getOpcode())
|
||||
|
||||
@property
|
||||
def flags(self):
|
||||
return self.instr_desc.getFlags()
|
||||
|
||||
@property
|
||||
def ts_flags(self):
|
||||
return self.instr_desc.TSFlags
|
||||
|
||||
class BadInstr(Instr):
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue