libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
triton::arch::x86::x86Specifications Class Reference

The x86Specifications class defines specifications about the x86 and x86_64 CPU. More...

#include <x86Specifications.hpp>

Inheritance diagram for triton::arch::x86::x86Specifications:

Public Member Functions

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.
 

Protected Attributes

std::unordered_map< triton::arch::register_e, const triton::arch::Registerid2reg
 List of registers specification available for this architecture.
 
std::unordered_map< std::string, triton::arch::register_ename2id
 

Detailed Description

The x86Specifications class defines specifications about the x86 and x86_64 CPU.

Definition at line 46 of file x86Specifications.hpp.

Constructor & Destructor Documentation

◆ x86Specifications()

triton::arch::x86::x86Specifications::x86Specifications ( triton::arch::architecture_e arch)

Constructor.

Definition at line 22 of file x86Specifications.cpp.

Member Function Documentation

◆ capstoneInstructionToTritonInstruction()

triton::uint32 triton::arch::x86::x86Specifications::capstoneInstructionToTritonInstruction ( triton::uint32 id) const

Converts a capstone's instruction id to a triton's instruction id.

Definition at line 85 of file x86Specifications.cpp.

◆ capstonePrefixToTritonPrefix()

triton::arch::x86::prefix_e triton::arch::x86::x86Specifications::capstonePrefixToTritonPrefix ( triton::uint32 id) const

Converts a capstone's prefix id to a triton's prefix id.

Definition at line 5277 of file x86Specifications.cpp.

◆ capstoneRegisterToTritonRegister()

triton::arch::register_e triton::arch::x86::x86Specifications::capstoneRegisterToTritonRegister ( triton::uint32 id) const

Converts a capstone's register id to a triton's register id.

Definition at line 63 of file x86Specifications.cpp.

Member Data Documentation

◆ id2reg

std::unordered_map<triton::arch::register_e, const triton::arch::Register> triton::arch::x86::x86Specifications::id2reg
protected

List of registers specification available for this architecture.

Definition at line 49 of file x86Specifications.hpp.

◆ name2id

std::unordered_map<std::string, triton::arch::register_e> triton::arch::x86::x86Specifications::name2id
protected

Definition at line 50 of file x86Specifications.hpp.


The documentation for this class was generated from the following files: