summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/ARMUtils.h
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-02-16 01:27:54 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-02-16 01:27:54 +0000
commit22deaa5a1adf7d07060490954c4613a09702b274 (patch)
treec844d9203b9d185864f00dc7195e3d53e422caba /lldb/source/Plugins/Process/Utility/ARMUtils.h
parent25468059e563b4c68062d931b8493b2f0c0b17ec (diff)
downloadbcm5719-llvm-22deaa5a1adf7d07060490954c4613a09702b274.tar.gz
bcm5719-llvm-22deaa5a1adf7d07060490954c4613a09702b274.zip
Add emulation methods for LSL (immediate), LSL (register), LSR (immediate), and LSR (register).
Create two helper methods EmulateShiftImm() and EmulateShiftReg() and have ASR, LSL, and LSR delegate to the helper methods which take an extra ARM_ShifterType parameter. The opcodes tables have not been updated yet to reflect these new entries. llvm-svn: 125633
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/ARMUtils.h')
-rw-r--r--lldb/source/Plugins/Process/Utility/ARMUtils.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/lldb/source/Plugins/Process/Utility/ARMUtils.h b/lldb/source/Plugins/Process/Utility/ARMUtils.h
index 523d0fc36c4..53a04bb06b7 100644
--- a/lldb/source/Plugins/Process/Utility/ARMUtils.h
+++ b/lldb/source/Plugins/Process/Utility/ARMUtils.h
@@ -10,6 +10,7 @@
#ifndef lldb_ARMUtils_h_
#define lldb_ARMUtils_h_
+#include "ARMDefines.h"
#include "InstructionUtils.h"
#include "llvm/Support/MathExtras.h" // for SignExtend64 template function
@@ -17,15 +18,6 @@
namespace lldb_private {
-typedef enum
-{
- SRType_LSL,
- SRType_LSR,
- SRType_ASR,
- SRType_ROR,
- SRType_RRX
-} ARM_ShifterType;
-
static inline uint32_t DecodeImmShift(const uint32_t type, const uint32_t imm5, ARM_ShifterType &shift_t)
{
switch (type) {
OpenPOWER on IntegriCloud