diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2020-04-29 19:38:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-29 19:38:26 +0200 |
| commit | 5faf8054253e6231dc76750c2f1d35b599198ee0 (patch) | |
| tree | 02f22811fba172d39de938bcc45bb1261c393fae | |
| parent | 9b92ca809557c5817250c7397bebb0f8dc9e8163 (diff) | |
| parent | 7185be3f3ec8b56899cd073ab75248906def655d (diff) | |
| download | miasm-5faf8054253e6231dc76750c2f1d35b599198ee0.tar.gz miasm-5faf8054253e6231dc76750c2f1d35b599198ee0.zip | |
Merge pull request #1211 from IridiumXOR/ppc_bug_int
Fix mn_do_lmw() and mn_do_stmw()
| -rw-r--r-- | miasm/arch/ppc/sem.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm/arch/ppc/sem.py b/miasm/arch/ppc/sem.py index 7b064ec4..61330fe1 100644 --- a/miasm/arch/ppc/sem.py +++ b/miasm/arch/ppc/sem.py @@ -320,7 +320,7 @@ def mn_do_load(ir, instr, arg1, arg2, arg3=None): def mn_do_lmw(ir, instr, rd, src): ret = [] - address = int(src) + address = src.ptr ri = int(rd.name[1:],10) i = 0 while ri <= 31: @@ -602,7 +602,7 @@ def mn_do_srw(ir, instr, ra, rs, rb): def mn_do_stmw(ir, instr, rs, dest): ret = [] - address = int(dest) + address = dest.ptr ri = int(rs.name[1:],10) i = 0 while ri <= 31: |