From 89965e701119f918e235be24c5c1e2e45b014e6e Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sun, 23 Oct 2016 01:01:08 +0000 Subject: [PATCH] Use the right thread pointer for SPE alignment exceptions. --- sys/powerpc/powerpc/trap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index b0a86701ac4..702b48942da 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -765,13 +765,13 @@ fix_unaligned(struct thread *td, struct trapframe *frame) fpr = (double *)td->td_pcb->pcb_vec.vr[reg]; fputhread = PCPU_GET(vecthread); - /* Juggle the FPU to ensure that we've initialized - * the FPRs, and that their current state is in + /* Juggle the SPE to ensure that we've initialized + * the registers, and that their current state is in * the PCB. */ - if (fputhread != td) { - if (fputhread) - save_vec(fputhread); + if (vecthread != td) { + if (vecthread) + save_vec(vecthread); enable_vec(td); } save_vec(td);