| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 212553
|
| |
|
|
| |
llvm-svn: 160338
|
| |
|
|
|
|
| |
asserting and bringing down the whole process.
llvm-svn: 132506
|
| |
|
|
|
|
|
| |
true/false in an extra boolean parameter and not cause the the binary that
us using the LLDB framework to crash.
llvm-svn: 132501
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
into some cleanup I have been wanting to do when reading/writing registers.
Previously all RegisterContext subclasses would need to implement:
virtual bool
ReadRegisterBytes (uint32_t reg, DataExtractor &data);
virtual bool
WriteRegisterBytes (uint32_t reg, DataExtractor &data, uint32_t data_offset = 0);
There is now a new class specifically designed to hold register values:
lldb_private::RegisterValue
The new register context calls that subclasses must implement are:
virtual bool
ReadRegister (const RegisterInfo *reg_info, RegisterValue ®_value) = 0;
virtual bool
WriteRegister (const RegisterInfo *reg_info, const RegisterValue ®_value) = 0;
The RegisterValue class must be big enough to handle any register value. The
class contains an enumeration for the value type, and then a union for the
data value. Any integer/float values are stored directly in an appropriate
host integer/float. Anything bigger is stored in a byte buffer that has a length
and byte order. The RegisterValue class also knows how to copy register value
bytes into in a buffer with a specified byte order which can be used to write
the register value down into memory, and this does the right thing when not
all bytes from the register values are needed (getting a uint8 from a uint32
register value..).
All RegiterContext and other sources have been switched over to using the new
regiter value class.
llvm-svn: 131096
|
| |
|
|
|
|
| |
in the wrong order.
llvm-svn: 128237
|
| |
|
|
|
|
|
|
| |
function
and rename the original ThumbImmScaled() function to ThumbImm7Scaled().
llvm-svn: 126335
|
| |
|
|
|
|
|
|
| |
to ARMUtils.h.
Use them within EmulateInstructionARM.cpp to save repetitive typing.
llvm-svn: 126247
|
| |
|
|
| |
llvm-svn: 125753
|
| |
|
|
|
|
|
|
|
|
| |
Turns out that they can be funneled through the helper methods
EmulateShiftImm()/ EmulateShiftReg() as well.
Modify EmulateShiftImm() to handle SRType_ROR and SRType_RRX.
And fix a typo in the impl of utility Shift_C() in ARMUtils.h.
llvm-svn: 125689
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
from the bottom byte of a register.
llvm-svn: 125606
|
| |
|
|
|
|
| |
Add EmulateASRImm() Encodings T1, T2, and A1 to the opcodes tables.
llvm-svn: 125592
|
| |
|
|
|
|
|
|
|
| |
operations pertaining to:
o A2.2.1 Pseudocode details of shift and rotate operations
o A8.4.3 Pseudocode details of instruction-specified shifts and rotates
llvm-svn: 125575
|
| |
|
|
| |
llvm-svn: 125509
|
| |
|
|
|
|
|
|
| |
an imm12 into imm32 for ARM or Thumb so that they now handle carry_in/carry_out.
Funnel ARMExpandImm()/ThumbExpandImm() to the enhanced ARMExpandImm_C()/ThumbExpandImm_C()
functions.
llvm-svn: 125508
|
| |
|
|
| |
llvm-svn: 124261
|
| |
|
|
|
|
|
|
| |
file
named InstructionUtils.h and modify some existing code to use them.
llvm-svn: 124259
|
| |
|
|
|
|
| |
Update emulate_sub_sp_imm to handle Encoding T1.
llvm-svn: 124253
|
| |
|
|
|
|
| |
Update emulate_sub_sp_imm to handle Encoding T2 & T3.
llvm-svn: 124248
|
| |
|
|
|
|
|
|
| |
corresponds
to an operation to adjust the stack pointer (allocate space for local storage).
llvm-svn: 124237
|
| |
|
|
| |
llvm-svn: 124141
|
| |
|
|
|
|
| |
Plus add an extra field ARMInstrSize to the table entry type 'ARMOpcode'.
llvm-svn: 124140
|
|
|
Instruction Set Architecture.
llvm-svn: 124131
|