powerpc: Remove fp_enable() and vec_enable(), use msr_check_and_{set, clear}()
More consolidation of our MSR available bit handling. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
3eb5d5888d
commit
1f2e25b2d5
@@ -32,16 +32,6 @@ _GLOBAL(do_load_up_transact_altivec)
|
||||
blr
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Enable use of VMX/Altivec for the caller.
|
||||
*/
|
||||
_GLOBAL(vec_enable)
|
||||
mfmsr r3
|
||||
oris r3,r3,MSR_VEC@h
|
||||
MTMSRD(r3)
|
||||
isync
|
||||
blr
|
||||
|
||||
/*
|
||||
* Load state from memory into VMX registers including VSCR.
|
||||
* Assumes the caller has enabled VMX in the MSR.
|
||||
|
Reference in New Issue
Block a user