diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2014-09-05 14:21:20 +0200 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2014-09-05 14:21:20 +0200 |
| commit | b1ed2b50425d08b93ba7a4f49ef69d13b2a29e9e (patch) | |
| tree | 4046f1de2f3908e982e0c7977866e083c160c5f9 | |
| parent | 5da3d8a17178a50bf2ced4b0d7d456ff121a25e9 (diff) | |
| download | miasm-b1ed2b50425d08b93ba7a4f49ef69d13b2a29e9e.tar.gz miasm-b1ed2b50425d08b93ba7a4f49ef69d13b2a29e9e.zip | |
x86 ira: Add sizeof for x86_64
| -rw-r--r-- | miasm2/arch/x86/ira.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/miasm2/arch/x86/ira.py b/miasm2/arch/x86/ira.py index bf07e7c2..edd4a52a 100644 --- a/miasm2/arch/x86/ira.py +++ b/miasm2/arch/x86/ira.py @@ -106,3 +106,18 @@ class ir_a_x86_64(ir_x86_64, ir_a_x86_16): ExprAff(self.sp, ExprOp('call_func_stack', ad, self.sp)), ]] return irs + + def sizeof_char(self): + return 8 + + def sizeof_short(self): + return 16 + + def sizeof_int(self): + return 32 + + def sizeof_long(self): + return 64 + + def sizeof_pointer(self): + return 64 |