[POWERPC] 64bit FPSCR support
Forthcoming machines will extend the FPSCR to 64 bits. We already had a 64-bit save area for the FPSCR, but we need to use a new form of the mtfsf instruction. Fortunately this new form is decoded as an ordinary mtfsf by existing 64-bit processors. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
30d8caf7c6
commit
3a2c48cfc9
@@ -72,7 +72,7 @@ _GLOBAL(load_up_fpu)
|
||||
std r12,_MSR(r1)
|
||||
#endif
|
||||
lfd fr0,THREAD_FPSCR(r5)
|
||||
mtfsf 0xff,fr0
|
||||
MTFSF_L(fr0)
|
||||
REST_32FPRS(0, r5)
|
||||
#ifndef CONFIG_SMP
|
||||
subi r4,r5,THREAD
|
||||
@@ -127,7 +127,7 @@ _GLOBAL(giveup_fpu)
|
||||
|
||||
_GLOBAL(cvt_fd)
|
||||
lfd 0,THREAD_FPSCR(r5) /* load up fpscr value */
|
||||
mtfsf 0xff,0
|
||||
MTFSF_L(0)
|
||||
lfs 0,0(r3)
|
||||
stfd 0,0(r4)
|
||||
mffs 0
|
||||
@@ -136,7 +136,7 @@ _GLOBAL(cvt_fd)
|
||||
|
||||
_GLOBAL(cvt_df)
|
||||
lfd 0,THREAD_FPSCR(r5) /* load up fpscr value */
|
||||
mtfsf 0xff,0
|
||||
MTFSF_L(0)
|
||||
lfd 0,0(r3)
|
||||
stfs 0,0(r4)
|
||||
mffs 0
|
||||
|
Reference in New Issue
Block a user