[Lldb-commits] [lldb] r124156 - /lldb/trunk/source/Plugins/Process/Utility/EmulateInstructionARM.cpp
Johnny Chen
johnny.chen at apple.com
Mon Jan 24 15:40:59 PST 2011
Author: johnny
Date: Mon Jan 24 17:40:59 2011
New Revision: 124156
URL: http://llvm.org/viewvc/llvm-project?rev=124156&view=rev
Log:
Use two opcode tables g_arm_opcodes and g_thumb_opcodes, instead of lumping arm and thumb opcodes together.
Modified:
lldb/trunk/source/Plugins/Process/Utility/EmulateInstructionARM.cpp
Modified: lldb/trunk/source/Plugins/Process/Utility/EmulateInstructionARM.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/EmulateInstructionARM.cpp?rev=124156&r1=124155&r2=124156&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/EmulateInstructionARM.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/EmulateInstructionARM.cpp Mon Jan 24 17:40:59 2011
@@ -191,19 +191,24 @@
static ARMOpcode g_arm_opcodes[] =
{
+ { 0x0fff0000, 0x092d0000, ARMvAll, eEncodingA1, eSize32, EmulateARMPushEncoding,
+ "push<c> <registers> ; <registers> contains more than one register" },
+ { 0x0fff0fff, 0x052d0004, ARMvAll, eEncodingA2, eSize32, EmulateARMPushEncoding,
+ "push<c> <registers> ; <registers> contains one register, <Rt>" }
+};
+
+static ARMOpcode g_thumb_opcodes[] =
+{
{ 0x0000fe00, 0x0000b400, ARMvAll, eEncodingT1, eSize16, EmulateARMPushEncoding,
"push<c> <registers>" },
{ 0xffff0000, 0xe92d0000, ARMv6T2|ARMv7, eEncodingT2, eSize32, EmulateARMPushEncoding,
"push<c>.w <registers> ; <registers> contains more than one register" },
{ 0xffff0fff, 0xf84d0d04, ARMv6T2|ARMv7, eEncodingT3, eSize32, EmulateARMPushEncoding,
- "push<c>.w <registers> ; <registers> contains one register, <Rt>" },
- { 0x0fff0000, 0x092d0000, ARMvAll, eEncodingA1, eSize32, EmulateARMPushEncoding,
- "push<c> <registers> ; <registers> contains more than one register" },
- { 0x0fff0fff, 0x052d0004, ARMvAll, eEncodingA2, eSize32, EmulateARMPushEncoding,
- "push<c> <registers> ; <registers> contains one register, <Rt>" }
+ "push<c>.w <registers> ; <registers> contains one register, <Rt>" }
};
static const size_t k_num_arm_opcodes = sizeof(g_arm_opcodes)/sizeof(ARMOpcode);
+static const size_t k_num_thumb_opcodes = sizeof(g_thumb_opcodes)/sizeof(ARMOpcode);
bool
EmulateInstructionARM::ReadInstruction ()
More information about the lldb-commits
mailing list