From b8e5038798b0dece628846acb5ad25d9d4e60395 Mon Sep 17 00:00:00 2001 From: Guillaume Valadon Date: Fri, 15 Jun 2018 12:10:10 +0200 Subject: Toshiba MeP support --- miasm2/jitter/codegen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'miasm2/jitter/codegen.py') diff --git a/miasm2/jitter/codegen.py b/miasm2/jitter/codegen.py index 10140fd2..a709d5ec 100644 --- a/miasm2/jitter/codegen.py +++ b/miasm2/jitter/codegen.py @@ -132,7 +132,8 @@ class CGen(object): @dst2index: LocKey -> uniq value @loc_key: LocKey istance""" - dst2index[loc_key] = len(dst2index) + if loc_key not in dst2index: + dst2index[loc_key] = len(dst2index) def assignblk_to_irbloc(self, instr, assignblk): """ -- cgit 1.4.1