mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
powerpc: Fix usage of 64-bit instruction in 32-bit altivec code
e821ea70f3
introduced a bug by copying
some 64-bit originated code as-is to be used by both 32 and 64-bit
but this code contains a 64-bit ony "cmpdi" instruction.
This changes it to cmpwi, which is fine since VRSAVE can only contains
a 32-bit value anyway.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@kernel.org>
This commit is contained in:
parent
bcd6acd51f
commit
e090aa8032
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ _GLOBAL(load_up_altivec)
|
|||
* all 1's
|
||||
*/
|
||||
mfspr r4,SPRN_VRSAVE
|
||||
cmpdi 0,r4,0
|
||||
cmpwi 0,r4,0
|
||||
bne+ 1f
|
||||
li r4,-1
|
||||
mtspr SPRN_VRSAVE,r4
|
||||
|
|
Loading…
Reference in a new issue