diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-23 00:30:12 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-23 00:30:12 +0000 |
| commit | 6e425a9de8c003b5a733621a6b6730ec3cc902b8 (patch) | |
| tree | 314123bcab78ff295f38f85f31dc141e5fe22d15 /utils/libmach | |
| parent | 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a (diff) | |
20061220
Diffstat (limited to 'utils/libmach')
| -rw-r--r-- | utils/libmach/5db.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/libmach/5db.c b/utils/libmach/5db.c index 1a125042..8312487c 100644 --- a/utils/libmach/5db.c +++ b/utils/libmach/5db.c @@ -689,7 +689,7 @@ armfmov(Map *map, Rgetter rget, Instr *i, ulong pc) /* LDR */ /* BUG: Needs LDH/B, too */ - if((i->w>>26)&0x3 == 1) { + if(((i->w>>26)&0x3) == 1) { if(get4(map, armaddr(map, rget, i), (long*)&v) < 0) { werrstr("can't read instruction: %r"); return pc+4; @@ -698,9 +698,7 @@ armfmov(Map *map, Rgetter rget, Instr *i, ulong pc) } /* MOV */ - v = armshiftval(map, rget, i); - - return v; + return armshiftval(map, rget, i); } static Opcode opcodes[] = |
