diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2014-08-29 13:25:32 +0200 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2014-08-29 13:25:32 +0200 |
| commit | ea45a73e9d28407afd65a794253aad061ce15252 (patch) | |
| tree | 5bcd31a1bd000e9db88f40fe2beb4dc7f4a097bd /miasm2/arch/arm/ira.py | |
| parent | bd1dfe0154b07b969d7d02661b9b562cfdb05047 (diff) | |
| download | miasm-ea45a73e9d28407afd65a794253aad061ce15252.tar.gz miasm-ea45a73e9d28407afd65a794253aad061ce15252.zip | |
IRA: Add methods to get char, short, int, long, pointer sizes
Diffstat (limited to 'miasm2/arch/arm/ira.py')
| -rw-r--r-- | miasm2/arch/arm/ira.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/miasm2/arch/arm/ira.py b/miasm2/arch/arm/ira.py index 7ff2c142..81d3bbbb 100644 --- a/miasm2/arch/arm/ira.py +++ b/miasm2/arch/arm/ira.py @@ -104,6 +104,21 @@ class ir_a_arm(ir_a_arm_base): def get_out_regs(self, b): return set([self.ret_reg, self.sp]) + def sizeof_char(self): + return 8 + + def sizeof_short(self): + return 16 + + def sizeof_int(self): + return 32 + + def sizeof_long(self): + return 32 + + def sizeof_pointer(self): + return 32 + class ir_a_armt(ir_armt, ir_a_arm): |