Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2018 04:54:55 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341752 - head/sys/powerpc/booke
Message-ID:  <201812090454.wB94staQ009607@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Sun Dec  9 04:54:55 2018
New Revision: 341752
URL: https://svnweb.freebsd.org/changeset/base/341752

Log:
  powerpc/SPE: Copy lower part of source register to target for efdabs/efdnabs/efdneg
  
  MFC after:	1 week
  MFC With:	r341751

Modified:
  head/sys/powerpc/booke/spe.c

Modified: head/sys/powerpc/booke/spe.c
==============================================================================
--- head/sys/powerpc/booke/spe.c	Sun Dec  9 04:13:14 2018	(r341751)
+++ head/sys/powerpc/booke/spe.c	Sun Dec  9 04:54:55 2018	(r341752)
@@ -543,16 +543,19 @@ spe_handle_fpdata(struct trapframe *frame)
 		case EFDABS:
 			curthread->td_pcb->pcb_vec.vr[rd][0] = 
 			    curthread->td_pcb->pcb_vec.vr[ra][0] & ~(1U << 31);
+			frame->fixreg[rd] = frame->fixreg[ra];
 			enable_vec(curthread);
 			break;
 		case EFDNABS:
 			curthread->td_pcb->pcb_vec.vr[rd][0] = 
 			    curthread->td_pcb->pcb_vec.vr[ra][0] | (1U << 31);
+			frame->fixreg[rd] = frame->fixreg[ra];
 			enable_vec(curthread);
 			break;
 		case EFDNEG:
 			curthread->td_pcb->pcb_vec.vr[rd][0] = 
 			    curthread->td_pcb->pcb_vec.vr[ra][0] ^ (1U << 31);
+			frame->fixreg[rd] = frame->fixreg[ra];
 			enable_vec(curthread);
 			break;
 		case EFDCFS:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812090454.wB94staQ009607>