diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-09 17:04:36 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-09 17:04:36 +0200 |
| commit | 7101a6d9d5998102d0dc6a86ac01ba332fed3506 (patch) | |
| tree | 2981aa9d677f614f0ded8476f6e86c20e6c28107 /miasm2/arch/mips32/sem.py | |
| parent | 59ef1b1d854cac3e94cd4565a0ac750de9a4c92d (diff) | |
| download | miasm-7101a6d9d5998102d0dc6a86ac01ba332fed3506.tar.gz miasm-7101a6d9d5998102d0dc6a86ac01ba332fed3506.zip | |
Arch/jit: add endianess support jitters
Diffstat (limited to 'miasm2/arch/mips32/sem.py')
| -rw-r--r-- | miasm2/arch/mips32/sem.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/miasm2/arch/mips32/sem.py b/miasm2/arch/mips32/sem.py index 365444d7..57263478 100644 --- a/miasm2/arch/mips32/sem.py +++ b/miasm2/arch/mips32/sem.py @@ -522,10 +522,10 @@ def get_mnemo_expr(ir, instr, *args): instr, extra_ir = mnemo_func[instr.name.lower()](ir, instr, *args) return instr, extra_ir -class ir_mips32(ir): +class ir_mips32l(ir): def __init__(self, symbol_pool=None): - ir.__init__(self, mn_mips32, None, symbol_pool) + ir.__init__(self, mn_mips32, 'l', symbol_pool) self.pc = mn_mips32.getpc() self.sp = mn_mips32.getsp() self.IRDst = ExprId('IRDst', 32) @@ -590,3 +590,10 @@ class ir_mips32(ir): self.post_add_bloc(bloc, ir_blocs_all) return ir_blocs_all """ + +class ir_mips32b(ir_mips32l): + def __init__(self, symbol_pool=None): + ir.__init__(self, mn_mips32, 'b', symbol_pool) + self.pc = mn_mips32.getpc() + self.sp = mn_mips32.getsp() + self.IRDst = ExprId('IRDst', 32) |