add flags, ts_flags properties for Instr class

This commit is contained in:
anthony cantor 2013-08-27 14:25:05 -06:00 • committed by Siu Kwan Lam
commit 3c06f0d590
3 changed files with 13 additions and 2 deletions

View file

@ -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