aboutsummaryrefslogtreecommitdiff
path: root/lib/arm
diff options
context:
space:
mode:
authorcomex2015-02-09 00:27:15 -0500
committercomex2015-02-09 00:27:15 -0500
commit00ceac163e5f6706c039a56b17cfb29111f2cc78 (patch)
tree81fa0be8b863a24a7c8201532f2c8142891d90e1 /lib/arm
parentadd transform-dis-{i386,x86_64} to makefile - fix a missing UNUSED (diff)
downloadsubstitute-00ceac163e5f6706c039a56b17cfb29111f2cc78.tar.gz
call vs. branch fixes on ARM (though really I should just ignore calls)
Diffstat (limited to 'lib/arm')
-rw-r--r--lib/arm/dis-thumb.inc.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/arm/dis-thumb.inc.h b/lib/arm/dis-thumb.inc.h
index 6b6e841..4a2b747 100644
--- a/lib/arm/dis-thumb.inc.h
+++ b/lib/arm/dis-thumb.inc.h
@@ -14,9 +14,7 @@ static INLINE void P(GPR_Rm_B_1_tBX)(tdis_ctx ctx, struct bitslice Rm) {
unsigned val = bs_get(Rm, ctx->base.op);
if (val == 15) /* bx pc */
return P(bad)(ctx);
- else if (val == 14) /* bx lr */
- return P(ret)(ctx);
- return P(unidentified)(ctx);
+ return P(ret)(ctx);
}
static INLINE void P(GPR_Rm_unk_Rd_1_tMOVr)(tdis_ctx ctx, struct bitslice Rd, struct bitslice Rm) {
unsigned Rd_val = bs_get(Rd, ctx->base.op);