File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
lldb/source/Plugins/Process/Linux Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux(
65
65
#if LLDB_HAVE_USER_SVE_HEADER
66
66
struct user_sve_header sve_header;
67
67
#else
68
- struct sve_header {} ;
68
+ struct {} sve_header ;
69
69
#endif
70
70
struct iovec ioVec;
71
71
ioVec.iov_base = &sve_header;
@@ -395,6 +395,7 @@ Status NativeRegisterContextLinux_arm64::WriteRegister(
395
395
if (GetRegisterInfo ().IsSVERegVG (reg)) {
396
396
uint64_t vg_value = reg_value.GetAsUInt64 ();
397
397
398
+ #if LLDB_HAVE_USER_SVE_HEADER
398
399
if (sve_vl_valid (vg_value * 8 )) {
399
400
if (m_sve_header_is_valid && vg_value == GetSVERegVG ())
400
401
return error;
@@ -408,9 +409,11 @@ Status NativeRegisterContextLinux_arm64::WriteRegister(
408
409
if (m_sve_header_is_valid && vg_value == GetSVERegVG ())
409
410
return error;
410
411
}
411
-
412
+ # endif
412
413
return Status (" SVE vector length update failed." );
414
+ #if LLDB_HAVE_USER_SVE_HEADER
413
415
}
416
+ #endif
414
417
415
418
// If target supports SVE but currently in FPSIMD mode.
416
419
if (m_sve_state == SVEState::FPSIMD) {
You can’t perform that action at this time.
0 commit comments