[Lldb-commits] [lldb] r125533 - /lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp

Johnny Chen johnny.chen at apple.com
Mon Feb 14 15:33:58 PST 2011


Author: johnny
Date: Mon Feb 14 17:33:58 2011
New Revision: 125533

URL: http://llvm.org/viewvc/llvm-project?rev=125533&view=rev
Log:
Add missing logic (if BadReg(d) then UNPREDICTABLE;) for Encoding T2 of EmulateMovRdImm().

Modified:
    lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp

Modified: lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp?rev=125533&r1=125532&r2=125533&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Mon Feb 14 17:33:58 2011
@@ -698,6 +698,8 @@
             setflags = BitIsSet(opcode, 20);
             imm12 = Bit32(opcode, 26) << 11 | Bits32(opcode, 14, 12) << 8 | Bits32(opcode, 7, 0);
             imm32 = ThumbExpandImm_C(imm12, Bit32(m_inst_cpsr, CPSR_C), carry);
+            if (BadReg(Rd))
+                return false;
             break;
         default:
             return false;





More information about the lldb-commits mailing list