LLDB mainline
|
#include <RegisterInfoPOSIX_riscv64.h>
Classes | |
struct | FPR |
struct | GPR |
struct | VPR |
Public Types | |
enum | { GPRegSet = 0 } |
enum | { eRegsetMaskDefault = 0 , eRegsetMaskFP = 1 , eRegsetMaskAll = -1 } |
Public Member Functions | |
RegisterInfoPOSIX_riscv64 (const lldb_private::ArchSpec &target_arch, lldb_private::Flags opt_regsets) | |
void | AddRegSetGP () |
void | AddRegSetFP () |
size_t | GetGPRSize () const override |
size_t | GetFPRSize () const override |
const lldb_private::RegisterInfo * | GetRegisterInfo () const override |
uint32_t | GetRegisterCount () const override |
const lldb_private::RegisterSet * | GetRegisterSet (size_t reg_set) const override |
size_t | GetRegisterSetCount () const override |
size_t | GetRegisterSetFromRegisterIndex (uint32_t reg_index) const override |
bool | IsFPPresent () const |
bool | IsFPReg (unsigned reg) const |
Public Member Functions inherited from lldb_private::RegisterInfoAndSetInterface | |
RegisterInfoAndSetInterface (const lldb_private::ArchSpec &target_arch) | |
virtual size_t | GetFPRSize () const =0 |
virtual const lldb_private::RegisterSet * | GetRegisterSet (size_t reg_set) const =0 |
virtual size_t | GetRegisterSetCount () const =0 |
virtual size_t | GetRegisterSetFromRegisterIndex (uint32_t reg_index) const =0 |
Public Member Functions inherited from lldb_private::RegisterInfoInterface | |
RegisterInfoInterface (const lldb_private::ArchSpec &target_arch) | |
virtual | ~RegisterInfoInterface ()=default |
virtual size_t | GetGPRSize () const =0 |
virtual const lldb_private::RegisterInfo * | GetRegisterInfo () const =0 |
virtual uint32_t | GetRegisterCount () const =0 |
virtual uint32_t | GetUserRegisterCount () const |
const lldb_private::ArchSpec & | GetTargetArchitecture () const |
Private Attributes | |
std::vector< lldb_private::RegisterInfo > | m_register_infos |
std::vector< lldb_private::RegisterSet > | m_register_sets |
std::map< uint32_t, std::pair< uint32_t, uint32_t > > | m_per_regset_regnum_range |
std::vector< uint32_t > | m_fp_regnum_collection |
lldb_private::Flags | m_opt_regsets |
Definition at line 18 of file RegisterInfoPOSIX_riscv64.h.
anonymous enum |
Enumerator | |
---|---|
GPRegSet |
Definition at line 21 of file RegisterInfoPOSIX_riscv64.h.
anonymous enum |
Enumerator | |
---|---|
eRegsetMaskDefault | |
eRegsetMaskFP | |
eRegsetMaskAll |
Definition at line 24 of file RegisterInfoPOSIX_riscv64.h.
RegisterInfoPOSIX_riscv64::RegisterInfoPOSIX_riscv64 | ( | const lldb_private::ArchSpec & | target_arch, |
lldb_private::Flags | opt_regsets | ||
) |
Definition at line 56 of file RegisterInfoPOSIX_riscv64.cpp.
References AddRegSetFP(), AddRegSetGP(), lldb_private::Flags::AnySet(), eRegsetMaskFP, lldb_private::ArchSpec::GetMachine(), and m_opt_regsets.
void RegisterInfoPOSIX_riscv64::AddRegSetFP | ( | ) |
Definition at line 86 of file RegisterInfoPOSIX_riscv64.cpp.
References g_reg_set_fpr_riscv64, k_num_fpr_registers, m_fp_regnum_collection, m_per_regset_regnum_range, m_register_infos, and m_register_sets.
Referenced by RegisterInfoPOSIX_riscv64().
void RegisterInfoPOSIX_riscv64::AddRegSetGP | ( | ) |
Definition at line 76 of file RegisterInfoPOSIX_riscv64.cpp.
References g_reg_set_gpr_riscv64, gpr_first_riscv, GPRegSet, k_num_gpr_registers, m_per_regset_regnum_range, m_register_infos, and m_register_sets.
Referenced by RegisterInfoPOSIX_riscv64().
|
overridevirtual |
Implements lldb_private::RegisterInfoAndSetInterface.
Definition at line 118 of file RegisterInfoPOSIX_riscv64.cpp.
|
overridevirtual |
Implements lldb_private::RegisterInfoInterface.
Definition at line 114 of file RegisterInfoPOSIX_riscv64.cpp.
|
overridevirtual |
Implements lldb_private::RegisterInfoInterface.
Definition at line 110 of file RegisterInfoPOSIX_riscv64.cpp.
References m_register_infos.
Referenced by lldb_private::EmulateInstructionRISCV::GetRegisterInfo().
|
overridevirtual |
Implements lldb_private::RegisterInfoInterface.
Definition at line 123 of file RegisterInfoPOSIX_riscv64.cpp.
References m_register_infos.
Referenced by lldb_private::EmulateInstructionRISCV::GetRegisterInfo().
|
overridevirtual |
Implements lldb_private::RegisterInfoAndSetInterface.
Definition at line 146 of file RegisterInfoPOSIX_riscv64.cpp.
References GetRegisterSetCount(), and m_register_sets.
|
overridevirtual |
Implements lldb_private::RegisterInfoAndSetInterface.
Definition at line 127 of file RegisterInfoPOSIX_riscv64.cpp.
References m_register_sets.
Referenced by GetRegisterSet().
|
overridevirtual |
Implements lldb_private::RegisterInfoAndSetInterface.
Definition at line 131 of file RegisterInfoPOSIX_riscv64.cpp.
References LLDB_INVALID_REGNUM, and m_per_regset_regnum_range.
|
inline |
Definition at line 67 of file RegisterInfoPOSIX_riscv64.h.
References lldb_private::Flags::AnySet(), eRegsetMaskFP, and m_opt_regsets.
bool RegisterInfoPOSIX_riscv64::IsFPReg | ( | unsigned | reg | ) | const |
Definition at line 141 of file RegisterInfoPOSIX_riscv64.cpp.
References m_fp_regnum_collection.
|
private |
Definition at line 81 of file RegisterInfoPOSIX_riscv64.h.
Referenced by AddRegSetFP(), and IsFPReg().
|
private |
Definition at line 83 of file RegisterInfoPOSIX_riscv64.h.
Referenced by IsFPPresent(), and RegisterInfoPOSIX_riscv64().
|
private |
Definition at line 78 of file RegisterInfoPOSIX_riscv64.h.
Referenced by AddRegSetFP(), AddRegSetGP(), and GetRegisterSetFromRegisterIndex().
|
private |
Definition at line 72 of file RegisterInfoPOSIX_riscv64.h.
Referenced by AddRegSetFP(), AddRegSetGP(), GetRegisterCount(), and GetRegisterInfo().
|
private |
Definition at line 74 of file RegisterInfoPOSIX_riscv64.h.
Referenced by AddRegSetFP(), AddRegSetGP(), GetRegisterSet(), and GetRegisterSetCount().