diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-02-16 01:27:54 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-02-16 01:27:54 +0000 |
| commit | 22deaa5a1adf7d07060490954c4613a09702b274 (patch) | |
| tree | c844d9203b9d185864f00dc7195e3d53e422caba /lldb/source/Plugins/Process/Utility/ARMDefines.h | |
| parent | 25468059e563b4c68062d931b8493b2f0c0b17ec (diff) | |
| download | bcm5719-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/ARMDefines.h')
| -rw-r--r-- | lldb/source/Plugins/Process/Utility/ARMDefines.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Utility/ARMDefines.h b/lldb/source/Plugins/Process/Utility/ARMDefines.h index 6453a3c1a4b..9a4dcc15a8e 100644 --- a/lldb/source/Plugins/Process/Utility/ARMDefines.h +++ b/lldb/source/Plugins/Process/Utility/ARMDefines.h @@ -10,12 +10,20 @@ #ifndef lldb_ARMDefines_h_ #define lldb_ARMDefines_h_ -#include "InstructionUtils.h" - // Common defintions for the ARM/Thumb Instruction Set Architecture. namespace lldb_private { +// ARM shifter types +typedef enum +{ + SRType_LSL, + SRType_LSR, + SRType_ASR, + SRType_ROR, + SRType_RRX +} ARM_ShifterType; + // ARM conditions // Meaning (integer) Meaning (floating-point) Condition flags #define COND_EQ 0x0 // Equal Equal Z == 1 #define COND_NE 0x1 // Not equal Not equal, or unordered Z == 0 |

