Home
last modified time | relevance | path

Searched refs:reg_index (Results 1 – 25 of 70) sorted by relevance

123

/openbsd/src/gnu/llvm/lldb/source/Plugins/Process/Linux/
DNativeRegisterContextLinux_x86_64.cpp568 uint32_t reg_index) { in UpdateXSTATEforWrite() argument
570 if (IsFPR(reg_index)) { in UpdateXSTATEforWrite()
574 } else if (IsAVX(reg_index)) { in UpdateXSTATEforWrite()
577 } else if (IsMPX(reg_index)) { in UpdateXSTATEforWrite()
587 const uint32_t reg_index = reg_info->kinds[lldb::eRegisterKindLLDB]; in WriteRegister() local
588 if (reg_index == LLDB_INVALID_REGNUM) in WriteRegister()
593 UpdateXSTATEforWrite(reg_index); in WriteRegister()
595 if (IsGPR(reg_index) || IsDR(reg_index)) in WriteRegister()
596 return WriteRegisterRaw(reg_index, reg_value); in WriteRegister()
598 if (IsFPR(reg_index) || IsAVX(reg_index) || IsMPX(reg_index)) { in WriteRegister()
[all …]
DNativeRegisterContextLinux_x86_64.h64 uint32_t GetPtraceOffset(uint32_t reg_index) override;
114 bool IsGPR(uint32_t reg_index) const;
116 bool IsFPR(uint32_t reg_index) const;
118 bool IsDR(uint32_t reg_index) const;
120 bool CopyXSTATEtoYMM(uint32_t reg_index, lldb::ByteOrder byte_order);
124 bool IsAVX(uint32_t reg_index) const;
130 bool IsMPX(uint32_t reg_index) const;
132 void UpdateXSTATEforWrite(uint32_t reg_index);
DNativeRegisterContextLinux.cpp27 Status NativeRegisterContextLinux::ReadRegisterRaw(uint32_t reg_index, in ReadRegisterRaw() argument
29 const RegisterInfo *const reg_info = GetRegisterInfoAtIndex(reg_index); in ReadRegisterRaw()
31 return Status("register %" PRIu32 " not found", reg_index); in ReadRegisterRaw()
33 return DoReadRegisterValue(GetPtraceOffset(reg_index), reg_info->name, in ReadRegisterRaw()
38 NativeRegisterContextLinux::WriteRegisterRaw(uint32_t reg_index, in WriteRegisterRaw() argument
40 uint32_t reg_to_write = reg_index; in WriteRegisterRaw()
44 const RegisterInfo *reg_info = GetRegisterInfoAtIndex(reg_index); in WriteRegisterRaw()
93 return DoWriteRegisterValue(GetPtraceOffset(reg_index), reg_info->name, in WriteRegisterRaw()
DNativeRegisterContextLinux.h94 virtual Status ReadRegisterRaw(uint32_t reg_index, RegisterValue &reg_value);
96 virtual Status WriteRegisterRaw(uint32_t reg_index,
123 virtual uint32_t GetPtraceOffset(uint32_t reg_index) { in GetPtraceOffset() argument
124 return GetRegisterInfoAtIndex(reg_index)->byte_offset; in GetPtraceOffset()
DNativeRegisterContextLinux_s390x.cpp178 bool NativeRegisterContextLinux_s390x::IsGPR(uint32_t reg_index) const { in IsGPR()
181 return reg_index <= m_reg_info.last_gpr || reg_index == lldb_orig_r2_s390x; in IsGPR()
184 bool NativeRegisterContextLinux_s390x::IsFPR(uint32_t reg_index) const { in IsFPR()
185 return (m_reg_info.first_fpr <= reg_index && in IsFPR()
186 reg_index <= m_reg_info.last_fpr); in IsFPR()
/openbsd/src/gnu/llvm/lldb/source/Plugins/Process/Utility/
DRegisterInfoPOSIX_riscv64.cpp128 uint32_t reg_index) const { in GetRegisterSetFromRegisterIndex()
130 if (reg_index >= gpr_first_riscv && reg_index <= gpr_last_riscv) in GetRegisterSetFromRegisterIndex()
132 if (reg_index >= fpr_first_riscv && reg_index <= fpr_last_riscv) in GetRegisterSetFromRegisterIndex()
DNativeRegisterContextRegisterInfo.cpp32 uint32_t reg_index) const { in GetRegisterInfoAtIndex()
33 if (reg_index <= GetRegisterCount()) in GetRegisterInfoAtIndex()
34 return m_register_info_interface_up->GetRegisterInfo() + reg_index; in GetRegisterInfoAtIndex()
DRegisterInfoPOSIX_loongarch64.cpp144 uint32_t reg_index) const { in GetRegisterSetFromRegisterIndex()
146 if (reg_index >= gpr_first_loongarch && reg_index <= gpr_last_loongarch) in GetRegisterSetFromRegisterIndex()
148 if (reg_index >= fpr_first_loongarch && reg_index <= fpr_last_loongarch) in GetRegisterSetFromRegisterIndex()
DRegisterInfos_i386.h26 #define YMM_OFFSET(reg_index) \ argument
30 (32 * reg_index))
32 #define BNDR_OFFSET(reg_index) \ argument
35 LLVM_EXTENSION offsetof(XSAVE, mpxr[reg_index]))
37 #define BNDC_OFFSET(reg_index) \ argument
40 LLVM_EXTENSION offsetof(XSAVE, mpxc[reg_index]))
DRegisterContextOpenBSD_i386.cpp51 #define DR_OFFSET(reg_index) (LLVM_EXTENSION offsetof(dbreg, dr[reg_index])) argument
DRegisterContextFreeBSD_i386.cpp55 #define DR_OFFSET(reg_index) \ argument
57 LLVM_EXTENSION offsetof(DBG, dr[reg_index]))
DRegisterInfos_x86_64.h23 #define YMM_OFFSET(reg_index) \ argument
26 LLVM_EXTENSION offsetof(XSAVE, ymmh[0]) + (32 * reg_index))
31 #define BNDR_OFFSET(reg_index) \ argument
34 LLVM_EXTENSION offsetof(XSAVE, mpxr[reg_index]) + GDB_REMOTE_OFFSET)
36 #define BNDC_OFFSET(reg_index) \ argument
39 LLVM_EXTENSION offsetof(XSAVE, mpxc[reg_index]) + GDB_REMOTE_OFFSET)
372 #define UPDATE_DR_INFO(reg_index) \ argument
374 g_register_infos[lldb_dr##reg_index##_i386].byte_offset = \
375 DR_OFFSET(reg_index); \
DRegisterInfoPOSIX_arm.cpp176 uint32_t reg_index) const { in GetRegisterSetFromRegisterIndex()
177 if (reg_index <= gpr_cpsr) in GetRegisterSetFromRegisterIndex()
179 if (reg_index <= fpu_q15) in GetRegisterSetFromRegisterIndex()
DRegisterContextNetBSD_i386.cpp68 #define DR_OFFSET(reg_index) \ argument
69 (LLVM_EXTENSION offsetof(UserArea, u_debugreg[reg_index]))
DRegisterContextOpenBSD_x86_64.cpp59 #define DR_OFFSET(reg_index) (LLVM_EXTENSION offsetof(DBG, dr[reg_index])) argument
/openbsd/src/gnu/llvm/lldb/source/Plugins/Process/Windows/Common/
DNativeRegisterContextWindows_x86_64.h74 bool IsGPR(uint32_t reg_index) const;
75 bool IsFPR(uint32_t reg_index) const;
76 bool IsDR(uint32_t reg_index) const;
DNativeRegisterContextWindows_x86_64.cpp116 bool NativeRegisterContextWindows_x86_64::IsGPR(uint32_t reg_index) const { in IsGPR()
117 return (reg_index >= k_first_gpr_x86_64 && reg_index < k_first_alias_x86_64); in IsGPR()
120 bool NativeRegisterContextWindows_x86_64::IsFPR(uint32_t reg_index) const { in IsFPR()
121 return (reg_index >= lldb_xmm0_x86_64 && reg_index <= k_last_fpr_x86_64); in IsFPR()
124 bool NativeRegisterContextWindows_x86_64::IsDR(uint32_t reg_index) const { in IsDR()
125 return (reg_index >= lldb_dr0_x86_64 && reg_index <= lldb_dr7_x86_64); in IsDR()
DNativeRegisterContextWindows_WoW64.cpp94 bool NativeRegisterContextWindows_WoW64::IsGPR(uint32_t reg_index) const { in IsGPR()
95 return (reg_index >= k_first_gpr_i386 && reg_index < k_first_alias_i386); in IsGPR()
98 bool NativeRegisterContextWindows_WoW64::IsDR(uint32_t reg_index) const { in IsDR()
99 return (reg_index >= lldb_dr0_i386 && reg_index <= lldb_dr7_i386); in IsDR()
DNativeRegisterContextWindows_WoW64.h70 bool IsGPR(uint32_t reg_index) const;
71 bool IsDR(uint32_t reg_index) const;
DNativeRegisterContextWindows_arm.h72 bool IsGPR(uint32_t reg_index) const;
74 bool IsFPR(uint32_t reg_index) const;
DNativeRegisterContextWindows_arm64.h72 bool IsGPR(uint32_t reg_index) const;
74 bool IsFPR(uint32_t reg_index) const;
DNativeRegisterContextWindows_i386.h70 bool IsGPR(uint32_t reg_index) const;
71 bool IsDR(uint32_t reg_index) const;
DNativeRegisterContextWindows_arm.cpp134 bool NativeRegisterContextWindows_arm::IsGPR(uint32_t reg_index) const { in IsGPR()
135 return (reg_index >= k_first_gpr_arm && reg_index <= k_last_gpr_arm); in IsGPR()
138 bool NativeRegisterContextWindows_arm::IsFPR(uint32_t reg_index) const { in IsFPR()
139 return (reg_index >= k_first_fpr_arm && reg_index <= k_last_fpr_arm); in IsFPR()
/openbsd/src/gnu/llvm/lldb/packages/Python/lldbsuite/test/tools/lldb-server/
Dgdbremote_testcase.py674 reg_index = 0
676 reg_info["lldb_register_index"] = reg_index
677 reg_index += 1
1151 reg_index = reg_info["lldb_register_index"]
1152 self.assertIsNotNone(reg_index)
1160 reg_index, thread_id)
1162 p_request = "read packet: $p{:x}#00".format(reg_index)
1187 reg_index, pack_register_hex(
1191 reg_index, pack_register_hex(
1268 reg_index = reg_info.get("lldb_register_index")
[all …]
/openbsd/src/sys/dev/pci/drm/amd/amdgpu/
Damdgpu_lsdma.c30 uint32_t reg_index, uint32_t reg_val, in amdgpu_lsdma_wait_for() argument
37 val = RREG32(reg_index); in amdgpu_lsdma_wait_for()

123