powerpc/l2cr_6xx: Fix invalid use of register expressions
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 14 Aug 2017 18:42:43 +0000 (20:42 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Aug 2017 11:04:32 +0000 (21:04 +1000)
This fixes another invalid use of register expressions.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/l2cr_6xx.S

index 97ec855..6408f09 100644 (file)
@@ -181,7 +181,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450)
        mtctr   r4
        li      r4,0
 1:
-       lwzx    r0,r0,r4
+       lwzx    r0,0,r4
        addi    r4,r4,32                /* Go to start of next cache line */
        bdnz    1b
        isync
@@ -328,7 +328,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_L3CR)
        mtctr   r4
        li      r4,0
 1:
-       lwzx    r0,r0,r4
+       lwzx    r0,0,r4
        dcbf    0,r4
        addi    r4,r4,32                /* Go to start of next cache line */
        bdnz    1b