[Lldb-commits] [lldb] [lldb][AArch64] Move register info reconfigure into architecture plugin (PR #70950)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 2 04:10:58 PDT 2023


================
@@ -373,14 +374,8 @@ bool GDBRemoteRegisterContext::WriteRegisterBytes(const RegisterInfo *reg_info,
   if (dst == nullptr)
     return false;
 
-  // Code below is specific to AArch64 target in SVE or SME state
-  // If vector granule (vg) register is being written then thread's
-  // register context reconfiguration is triggered on success.
-  // We do not allow writes to SVG so it is not mentioned here.
-  const ArchSpec &arch = process->GetTarget().GetArchitecture();
-  bool do_reconfigure_arm64_sve = arch.IsValid() &&
-                                  arch.GetTriple().isAArch64() &&
-                                  (strcmp(reg_info->name, "vg") == 0);
+  bool should_reconfigure_registers =
----------------
DavidSpickett wrote:

It is a bit far from use isn't it. (const by default when :crab: )

Done.

https://github.com/llvm/llvm-project/pull/70950


More information about the lldb-commits mailing list