Page MenuHomeFreeBSD

D62315.1796290555.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62315.1796290555.diff

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

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)

Event Timeline