libTriton
version 1.0 build 1530
|
This class is used to describe the x86 (32-bits) spec. More...
#include <x86Cpu.hpp>
Public Member Functions | |
TRITON_EXPORT | x86Cpu (triton::callbacks::Callbacks *callbacks=nullptr) |
Constructor. | |
TRITON_EXPORT | x86Cpu (const x86Cpu &other) |
Copy constructor. | |
virtual TRITON_EXPORT | ~x86Cpu () |
Destructor. | |
TRITON_EXPORT x86Cpu & | operator= (const x86Cpu &other) |
Copies a x86Cpu class. | |
TRITON_EXPORT bool | isGPR (triton::arch::register_e regId) const |
Returns true if regId is a GRP. | |
TRITON_EXPORT bool | isMMX (triton::arch::register_e regId) const |
Returns true if regId is a MMX register. | |
TRITON_EXPORT bool | isSTX (triton::arch::register_e regId) const |
Returns true if regId is a STX register. | |
TRITON_EXPORT bool | isSSE (triton::arch::register_e regId) const |
Returns true if regId is a SSE register. | |
TRITON_EXPORT bool | isFPU (triton::arch::register_e regId) const |
Returns true if regId is a FPU register. | |
TRITON_EXPORT bool | isEFER (triton::arch::register_e regId) const |
Returns true if regId is an EFER register. | |
TRITON_EXPORT bool | isAVX256 (triton::arch::register_e regId) const |
Returns true if regId is a AVX-256 (YMM) register. | |
TRITON_EXPORT bool | isControl (triton::arch::register_e regId) const |
Returns true if regId is a control (cr) register. | |
TRITON_EXPORT bool | isDebug (triton::arch::register_e regId) const |
Returns true if regId is a debug (dr) register. | |
TRITON_EXPORT bool | isSegment (triton::arch::register_e regId) const |
Returns true if regId is a Segment. | |
TRITON_EXPORT bool | isFlag (triton::arch::register_e regId) const |
Returns true if the register ID is a flag. | |
TRITON_EXPORT bool | isRegister (triton::arch::register_e regId) const |
Returns true if the register ID is a register. | |
TRITON_EXPORT bool | isRegisterValid (triton::arch::register_e regId) const |
Returns true if the register ID is valid. | |
TRITON_EXPORT bool | isThumb (void) const |
Returns true if the execution mode is Thumb. Only useful for Arm32. | |
TRITON_EXPORT bool | isMemoryExclusiveAccess (void) const |
Returns true if the exclusive memory access flag is set. Only valid for Arm32. | |
TRITON_EXPORT const std::unordered_map< triton::arch::register_e, const triton::arch::Register > & | getAllRegisters (void) const |
Returns all registers. | |
TRITON_EXPORT const triton::arch::Register & | getParentRegister (const triton::arch::Register ®) const |
Returns parent register from a given one. | |
TRITON_EXPORT const triton::arch::Register & | getParentRegister (triton::arch::register_e id) const |
Returns parent register from a given one. | |
TRITON_EXPORT const triton::arch::Register & | getProgramCounter (void) const |
Returns the program counter register. | |
TRITON_EXPORT const triton::arch::Register & | getRegister (triton::arch::register_e id) const |
Returns register from id. | |
TRITON_EXPORT const triton::arch::Register & | getRegister (const std::string &name) const |
Returns register from name. | |
TRITON_EXPORT const triton::arch::Register & | getStackPointer (void) const |
Returns the stack pointer register. | |
TRITON_EXPORT std::set< const triton::arch::Register * > | getParentRegisters (void) const |
Returns all parent registers. | |
TRITON_EXPORT std::vector< triton::uint8 > | getConcreteMemoryAreaValue (triton::uint64 baseAddr, triton::usize size, bool execCallbacks=true) const |
Returns the concrete value of a memory area. | |
TRITON_EXPORT triton::arch::endianness_e | getEndianness (void) const |
Returns the kind of endianness as triton::arch::endianness_e. | |
TRITON_EXPORT triton::uint32 | numberOfRegisters (void) const |
Returns the number of registers according to the CPU architecture. | |
TRITON_EXPORT triton::uint32 | gprBitSize (void) const |
Returns the bit in bit of the General Purpose Registers. | |
TRITON_EXPORT triton::uint32 | gprSize (void) const |
Returns the bit in byte of the General Purpose Registers. | |
TRITON_EXPORT triton::uint512 | getConcreteMemoryValue (const triton::arch::MemoryAccess &mem, bool execCallbacks=true) const |
Returns the concrete value of memory cells. | |
TRITON_EXPORT triton::uint512 | getConcreteRegisterValue (const triton::arch::Register ®, bool execCallbacks=true) const |
Returns the concrete value of a register. | |
TRITON_EXPORT triton::uint8 | getConcreteMemoryValue (triton::uint64 addr, bool execCallbacks=true) const |
Returns the concrete value of a memory cell. | |
TRITON_EXPORT void | clear (void) |
Clears the architecture states (registers and memory). | |
TRITON_EXPORT void | disassembly (triton::arch::Instruction &inst) |
Disassembles the instruction according to the architecture. | |
TRITON_EXPORT void | setConcreteMemoryAreaValue (triton::uint64 baseAddr, const std::vector< triton::uint8 > &values) |
[architecture api] - Sets the concrete value of a memory area. More... | |
TRITON_EXPORT void | setConcreteMemoryAreaValue (triton::uint64 baseAddr, const triton::uint8 *area, triton::usize size) |
[architecture api] - Sets the concrete value of a memory area. More... | |
TRITON_EXPORT void | setConcreteMemoryValue (const triton::arch::MemoryAccess &mem, const triton::uint512 &value) |
[architecture api] - Sets the concrete value of memory cells. More... | |
TRITON_EXPORT void | setConcreteMemoryValue (triton::uint64 addr, triton::uint8 value) |
[architecture api] - Sets the concrete value of a memory cell. More... | |
TRITON_EXPORT void | setConcreteRegisterValue (const triton::arch::Register ®, const triton::uint512 &value) |
[architecture api] - Sets the concrete value of a register. More... | |
TRITON_EXPORT void | setThumb (bool state) |
Sets CPU state to Thumb mode. | |
TRITON_EXPORT void | setMemoryExclusiveAccess (bool state) |
Sets exclusive memory access flag. Only valid for Arm32. | |
TRITON_EXPORT bool | isConcreteMemoryValueDefined (const triton::arch::MemoryAccess &mem) const |
Returns true if memory cells have a defined concrete value. | |
TRITON_EXPORT bool | isConcreteMemoryValueDefined (triton::uint64 baseAddr, triton::usize size=1) const |
Returns true if memory cells have a defined concrete value. | |
TRITON_EXPORT void | clearConcreteMemoryValue (const triton::arch::MemoryAccess &mem) |
Clears concrete values assigned to the memory cells. | |
TRITON_EXPORT void | clearConcreteMemoryValue (triton::uint64 baseAddr, triton::usize size=1) |
Clears concrete values assigned to the memory cells. | |
![]() | |
virtual TRITON_EXPORT | ~CpuInterface () |
Destructor. | |
![]() | |
TRITON_EXPORT | x86Specifications (triton::arch::architecture_e) |
Constructor. | |
TRITON_EXPORT triton::arch::register_e | capstoneRegisterToTritonRegister (triton::uint32 id) const |
Converts a capstone's register id to a triton's register id. | |
TRITON_EXPORT triton::uint32 | capstoneInstructionToTritonInstruction (triton::uint32 id) const |
Converts a capstone's instruction id to a triton's instruction id. | |
TRITON_EXPORT triton::arch::x86::prefix_e | capstonePrefixToTritonPrefix (triton::uint32 id) const |
Converts a capstone's prefix id to a triton's prefix id. | |
This class is used to describe the x86 (32-bits) spec.
Definition at line 53 of file x86Cpu.hpp.
|
virtual |
[architecture api] - Sets the concrete value of a memory area.
Note that by setting a concrete value will probably imply a desynchronization with the symbolic state (if it exists). You should probably use the concretize functions after this.
Implements triton::arch::CpuInterface.
Definition at line 798 of file x86Cpu.cpp.
|
virtual |
[architecture api] - Sets the concrete value of a memory area.
Note that by setting a concrete value will probably imply a desynchronization with the symbolic state (if it exists). You should probably use the concretize functions after this.
Implements triton::arch::CpuInterface.
Definition at line 806 of file x86Cpu.cpp.
|
virtual |
[architecture api] - Sets the concrete value of memory cells.
Note that by setting a concrete value will probably imply a desynchronization with the symbolic state (if it exists). You should probably use the concretize functions after this.
Implements triton::arch::CpuInterface.
Definition at line 777 of file x86Cpu.cpp.
|
virtual |
[architecture api] - Sets the concrete value of a memory cell.
Note that by setting a concrete value will probably imply a desynchronization with the symbolic state (if it exists). You should probably use the concretize functions after this.
Implements triton::arch::CpuInterface.
Definition at line 770 of file x86Cpu.cpp.
|
virtual |
[architecture api] - Sets the concrete value of a register.
Note that by setting a concrete value will probably imply a desynchronization with the symbolic state (if it exists). You should probably use the concretize functions after this.
Implements triton::arch::CpuInterface.
Definition at line 814 of file x86Cpu.cpp.
|
protected |
map of address -> concrete value
item1: memory address
item2: concrete value
Definition at line 79 of file x86Cpu.hpp.