Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154351450
D54532.id169083.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D54532.id169083.diff
View Options
diff --git a/sys/arm64/arm64/vfp.c b/sys/arm64/arm64/vfp.c
--- a/sys/arm64/arm64/vfp.c
+++ b/sys/arm64/arm64/vfp.c
@@ -939,7 +939,7 @@
return (false);
sve_flags = 0;
- if ((pcb->pcb_fpflags & PCB_FP_SVEVALID) == 0) {
+ if (pcb->pcb_svesaved == NULL) {
/* If SVE hasn't been used yet provide the VFP registers */
buf_size = sizeof(struct fpreg);
sve_flags |= SVEREG_FLAG_FP;
@@ -947,8 +947,6 @@
/* We have SVE registers */
buf_size = sve_buf_size(td);
sve_flags |= SVEREG_FLAG_SVE;
- KASSERT(pcb->pcb_svesaved != NULL, ("%s: no saved sve",
- __func__));
}
if (buf != NULL) {
@@ -958,6 +956,10 @@
if (td == curthread && (pcb->pcb_fpflags & PCB_FP_STARTED) != 0)
vfp_save_state(td, pcb);
+ if ((sve_flags & SVEREG_FLAG_REGS_MASK) == SVEREG_FLAG_SVE &&
+ (pcb->pcb_fpflags & PCB_FP_SVEVALID) == 0)
+ vfp_to_sve_sync(td);
+
header = buf;
memset(header, 0, sizeof(*header));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 12:59 AM (7 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32315980
Default Alt Text
D54532.id169083.diff (1 KB)
Attached To
Mode
D54532: arm64: Fix kernel panic in get_arm64_sve during core dump
Attached
Detach File
Event Timeline
Log In to Comment