diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-01-13 14:15:35 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-01-15 15:40:30 +0100 |
| commit | 6b87a3f5056fc971fb7ede2af69e70a96f869a59 (patch) | |
| tree | ead33a7804c25f29567ab3f846322a1cf045d581 | |
| parent | 4c9094900f28a569bab5b0d6fc3343e418eb8569 (diff) | |
| download | miasm-6b87a3f5056fc971fb7ede2af69e70a96f869a59.tar.gz miasm-6b87a3f5056fc971fb7ede2af69e70a96f869a59.zip | |
Instructions: slots class
| -rw-r--r-- | miasm2/arch/aarch64/arch.py | 1 | ||||
| -rw-r--r-- | miasm2/arch/arm/arch.py | 3 | ||||
| -rw-r--r-- | miasm2/arch/mips32/arch.py | 1 | ||||
| -rw-r--r-- | miasm2/arch/msp430/arch.py | 1 | ||||
| -rw-r--r-- | miasm2/arch/sh4/arch.py | 1 | ||||
| -rw-r--r-- | miasm2/arch/x86/arch.py | 1 | ||||
| -rw-r--r-- | miasm2/core/cpu.py | 3 |
7 files changed, 11 insertions, 0 deletions
diff --git a/miasm2/arch/aarch64/arch.py b/miasm2/arch/aarch64/arch.py index 3545e4c5..00f3509d 100644 --- a/miasm2/arch/aarch64/arch.py +++ b/miasm2/arch/aarch64/arch.py @@ -325,6 +325,7 @@ conds_inv_expr, _, conds_inv_info = gen_regs(CONDS_INV, {}) class instruction_aarch64(instruction): + __slots__ = [] delayslot = 0 def __init__(self, *args, **kargs): diff --git a/miasm2/arch/arm/arch.py b/miasm2/arch/arm/arch.py index 23ce170c..23935dd4 100644 --- a/miasm2/arch/arm/arch.py +++ b/miasm2/arch/arm/arch.py @@ -278,6 +278,7 @@ class additional_info: class instruction_arm(instruction): + __slots__ = [] delayslot = 0 def __init__(self, *args, **kargs): @@ -420,6 +421,8 @@ class instruction_arm(instruction): return ExprInt_from(expr, self.offset+8) class instruction_armt(instruction_arm): + __slots__ = [] + delayslot = 0 def __init__(self, *args, **kargs): super(instruction_armt, self).__init__(*args, **kargs) diff --git a/miasm2/arch/mips32/arch.py b/miasm2/arch/mips32/arch.py index f64e09e5..04ce6bdd 100644 --- a/miasm2/arch/mips32/arch.py +++ b/miasm2/arch/mips32/arch.py @@ -78,6 +78,7 @@ br_2 = ['BEQ', 'BEQL', 'BNE'] class instruction_mips32(cpu.instruction): + __slots__ = [] delayslot = 1 def __init__(self, *args, **kargs): diff --git a/miasm2/arch/msp430/arch.py b/miasm2/arch/msp430/arch.py index cda49608..56793a11 100644 --- a/miasm2/arch/msp430/arch.py +++ b/miasm2/arch/msp430/arch.py @@ -107,6 +107,7 @@ class additional_info: class instruction_msp430(instruction): + __slots__ = [] delayslot = 0 def dstflow(self): diff --git a/miasm2/arch/sh4/arch.py b/miasm2/arch/sh4/arch.py index 7039016c..d9ac2c9f 100644 --- a/miasm2/arch/sh4/arch.py +++ b/miasm2/arch/sh4/arch.py @@ -386,6 +386,7 @@ class additional_info: class instruction_sh4(instruction): + __slots__ = [] delayslot = 0 def __init__(self, *args, **kargs): diff --git a/miasm2/arch/x86/arch.py b/miasm2/arch/x86/arch.py index 36e2e3b7..a10e1038 100644 --- a/miasm2/arch/x86/arch.py +++ b/miasm2/arch/x86/arch.py @@ -465,6 +465,7 @@ class additional_info: class instruction_x86(instruction): + __slots__ = [] delayslot = 0 def __init__(self, *args, **kargs): diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py index 48f7e26e..d304108d 100644 --- a/miasm2/core/cpu.py +++ b/miasm2/core/cpu.py @@ -910,6 +910,9 @@ class metamn(type): class instruction(object): + __slots__ = ["name", "mode", "args", + "l", "b", "offset", "data", + "additional_info", "delayslot"] def __init__(self, name, mode, args, additional_info=None): self.name = name |