Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178229892
D62315.1796290555.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62315.1796290555.diff
View Options
diff --git a/sys/powerpc/powerpc/elf32_machdep.c b/sys/powerpc/powerpc/elf32_machdep.c
--- a/sys/powerpc/powerpc/elf32_machdep.c
+++ b/sys/powerpc/powerpc/elf32_machdep.c
@@ -190,7 +190,7 @@
len = 0;
pcb = td->td_pcb;
- if (pcb->pcb_flags & PCB_VEC) {
+ if (pcb->pcb_flags & PCB_VECREGS) {
if (dst != NULL) {
len += elf32_populate_note(NT_PPC_VMX,
&pcb->pcb_vec, (char *)dst + len,
@@ -200,7 +200,8 @@
sizeof(pcb->pcb_vec), NULL);
}
- if (pcb->pcb_flags & PCB_VSX) {
+ if ((cpu_features & PPC_FEATURE_HAS_VSX) &&
+ (pcb->pcb_flags & PCB_FPREGS)) {
if (dst != NULL) {
/*
* Doubleword 0 of VSR0-VSR31 overlap with FPR0-FPR31 and
diff --git a/sys/powerpc/powerpc/elf64_machdep.c b/sys/powerpc/powerpc/elf64_machdep.c
--- a/sys/powerpc/powerpc/elf64_machdep.c
+++ b/sys/powerpc/powerpc/elf64_machdep.c
@@ -453,7 +453,7 @@
len = 0;
pcb = td->td_pcb;
- if (pcb->pcb_flags & PCB_VEC) {
+ if (pcb->pcb_flags & PCB_VECREGS) {
if (dst != NULL) {
len += elf64_populate_note(NT_PPC_VMX,
&pcb->pcb_vec, (char *)dst + len,
@@ -463,7 +463,8 @@
sizeof(pcb->pcb_vec), NULL);
}
- if (pcb->pcb_flags & PCB_VSX) {
+ if ((cpu_features & PPC_FEATURE_HAS_VSX) &&
+ (pcb->pcb_flags & PCB_FPREGS)) {
if (dst != NULL) {
/*
* Doubleword 0 of VSR0-VSR31 overlap with FPR0-FPR31 and
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 3, 9:35 AM (23 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42178416
Default Alt Text
D62315.1796290555.diff (1 KB)
Attached To
Mode
D62315: powerpc: keep the vector registers in a core after setcontext
Attached
Detach File
Event Timeline