diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2018-07-13 10:20:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-13 10:20:21 +0200 |
| commit | cc9c0c70af3a91157226440ae3b64199711ee0db (patch) | |
| tree | 932dd2676afcf0c4ba6bf0c57d3b574954461ad2 /miasm2/jitter/codegen.py | |
| parent | 82eb5f6eb197fc59d2e9ae21cfda05a1868e462e (diff) | |
| parent | b8e5038798b0dece628846acb5ad25d9d4e60395 (diff) | |
| download | miasm-cc9c0c70af3a91157226440ae3b64199711ee0db.tar.gz miasm-cc9c0c70af3a91157226440ae3b64199711ee0db.zip | |
Merge pull request #763 from guedou/Toshiba_MeP-c4
Toshiba MeP support
Diffstat (limited to 'miasm2/jitter/codegen.py')
| -rw-r--r-- | miasm2/jitter/codegen.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): """ |