[Lldb-commits] [lldb] [lldb][debugserver] Read/write SME registers on arm64 (PR #119171)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 9 07:01:02 PST 2024
================
@@ -2281,6 +2712,51 @@ bool DNBArchMachARM64::GetRegisterValue(uint32_t set, uint32_t reg,
}
break;
+ case e_regSetSVE:
+ if (GetRegisterState(e_regSetSVE, false) != KERN_SUCCESS)
+ return false;
+
+ if (reg >= sve_z0 && reg <= sve_z31) {
+ memset(&value->value.v_uint8, 0, max_svl_bytes);
+ memcpy(&value->value.v_uint8, &m_state.context.sve.z[reg - sve_z0],
+ max_svl_bytes);
+ return true;
+ }
----------------
DavidSpickett wrote:
else if? Just for clarity.
https://github.com/llvm/llvm-project/pull/119171
More information about the lldb-commits
mailing list