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

Caroline Tice ctice at apple.com
Wed Apr 13 14:49:04 PDT 2011


Author: ctice
Date: Wed Apr 13 16:49:04 2011
New Revision: 129474

URL: http://llvm.org/viewvc/llvm-project?rev=129474&view=rev
Log:

Fix bug where source & target registers were swapped in an
emulation function.


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=129474&r1=129473&r2=129474&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp Wed Apr 13 16:49:04 2011
@@ -3750,8 +3750,8 @@
         bool add, index, wback;
         switch (encoding) {
             case eEncodingT1:
-                Rt = Bits32(opcode, 5, 3);
-                Rn = Bits32(opcode, 2, 0);
+                Rt = Bits32(opcode, 2, 0);
+                Rn = Bits32(opcode, 5, 3);
                 imm32 = Bits32(opcode, 10, 6) << 2; // imm32 = ZeroExtend(imm5:'00', 32);
                 // index = TRUE; add = TRUE; wback = FALSE
                 add = true;





More information about the lldb-commits mailing list