From 17f5fa2b1c24be35f4f87ac5bd746e6653146021 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Wed, 13 Apr 2011 21:49:04 +0000 Subject: [PATCH] Fix bug where source & target registers were swapped in an emulation function. llvm-svn: 129474 --- lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp index 09f2f11f1248..9b8d07e2428b 100644 --- a/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp +++ b/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp @@ -3750,8 +3750,8 @@ EmulateInstructionARM::EmulateLDRRtRnImm (const uint32_t opcode, const ARMEncodi 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;