From: Julian Seward Date: Mon, 13 May 2013 10:28:59 +0000 (+0000) Subject: Implement STRT. Fixes #319395. (Vasily Golubev, w.golubev@mail.ru) X-Git-Tag: svn/VALGRIND_3_9_0^2~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f83998a808214ea9720cc66858f6c4bb1f498e4;p=thirdparty%2Fvalgrind.git Implement STRT. Fixes #319395. (Vasily Golubev, w.golubev@mail.ru) git-svn-id: svn://svn.valgrind.org/vex/trunk@2722 --- diff --git a/VEX/priv/guest_arm_toIR.c b/VEX/priv/guest_arm_toIR.c index 959bbe41b2..edf42ba9d3 100644 --- a/VEX/priv/guest_arm_toIR.c +++ b/VEX/priv/guest_arm_toIR.c @@ -19775,6 +19775,28 @@ DisResult disInstr_THUMB_WRK ( } } + /* -------------- (T1) STRT reg+#imm8 -------------- */ + /* Store Register Unprivileged: + strt Rt, [Rn, #imm8] + */ + if (INSN0(15,6) == BITS10(1,1,1,1,1,0,0,0,0,1) && INSN0(5,4) == BITS2(0,0) + && INSN1(11,8) == BITS4(1,1,1,0)) { + UInt rT = INSN1(15,12); + UInt rN = INSN0(3,0); + UInt imm8 = INSN1(7,0); + Bool valid = True; + if (rN == 15 || isBadRegT(rT)) valid = False; + if (valid) { + put_ITSTATE(old_itstate); + IRExpr* address = binop(Iop_Add32, getIRegT(rN), mkU32(imm8)); + storeGuardedLE( address, llGetIReg(rT), condT ); + put_ITSTATE(new_itstate); + DIP("strt r%u, [r%u, #%u]\n", rT, rN, imm8); + goto decode_success; + } + } + + /* ----------------------------------------------------------- */ /* -- VFP (CP 10, CP 11) instructions (in Thumb mode) -- */ /* ----------------------------------------------------------- */