Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107912123
D42417.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
828 B
Referenced Files
None
Subscribers
None
D42417.diff
View Options
diff --git a/sys/powerpc/powerpc/exec_machdep.c b/sys/powerpc/powerpc/exec_machdep.c
--- a/sys/powerpc/powerpc/exec_machdep.c
+++ b/sys/powerpc/powerpc/exec_machdep.c
@@ -528,8 +528,8 @@
* Additionally, ensure VSX is disabled as well, as it is illegal
* to leave it turned on when FP or VEC are off.
*/
- tf->srr1 &= ~(PSL_FP | PSL_VSX);
- pcb->pcb_flags &= ~(PCB_FPU | PCB_VSX);
+ tf->srr1 &= ~(PSL_FP | PSL_VSX | PSL_VEC);
+ pcb->pcb_flags &= ~(PCB_FPU | PCB_VSX | PCB_VEC);
if (mcp->mc_flags & _MC_FP_VALID) {
/* enable_fpu() will happen lazily on a fault */
@@ -550,9 +550,6 @@
pcb->pcb_vec.vscr = mcp->mc_vscr;
pcb->pcb_vec.vrsave = mcp->mc_vrsave;
memcpy(pcb->pcb_vec.vr, mcp->mc_avec, sizeof(mcp->mc_avec));
- } else {
- tf->srr1 &= ~PSL_VEC;
- pcb->pcb_flags &= ~PCB_VEC;
}
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 8:12 AM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15975849
Default Alt Text
D42417.diff (828 B)
Attached To
Mode
D42417: powerpc: Fix inconsistent Altivec handling in set_mcontext
Attached
Detach File
Event Timeline
Log In to Comment