From owner-svn-src-all@freebsd.org Sun Oct 23 01:01:09 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51089C13862; Sun, 23 Oct 2016 01:01:09 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22A8E36A; Sun, 23 Oct 2016 01:01:09 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9N118eA006601; Sun, 23 Oct 2016 01:01:08 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9N118m7006600; Sun, 23 Oct 2016 01:01:08 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201610230101.u9N118m7006600@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Sun, 23 Oct 2016 01:01:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r307813 - head/sys/powerpc/powerpc X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2016 01:01:09 -0000 Author: jhibbits Date: Sun Oct 23 01:01:08 2016 New Revision: 307813 URL: https://svnweb.freebsd.org/changeset/base/307813 Log: Use the right thread pointer for SPE alignment exceptions. Modified: head/sys/powerpc/powerpc/trap.c Modified: head/sys/powerpc/powerpc/trap.c ============================================================================== --- head/sys/powerpc/powerpc/trap.c Sun Oct 23 00:46:53 2016 (r307812) +++ head/sys/powerpc/powerpc/trap.c Sun Oct 23 01:01:08 2016 (r307813) @@ -765,13 +765,13 @@ fix_unaligned(struct thread *td, struct 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);