powerpc/32s: Fix LLVM SMP build

LLVM assembler does not recognise 3-operand cmpi, use cmpwi.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230606131828.315427-1-npiggin@gmail.com
This commit is contained in:
Nicholas Piggin 2023-06-06 23:18:28 +10:00 committed by Michael Ellerman
parent 606787fed7
commit 31b4f69dba
1 changed files with 4 additions and 4 deletions

View File

@ -199,12 +199,12 @@ _GLOBAL(add_hash_page)
lis r6, (mmu_hash_lock - PAGE_OFFSET)@ha lis r6, (mmu_hash_lock - PAGE_OFFSET)@ha
addi r6, r6, (mmu_hash_lock - PAGE_OFFSET)@l addi r6, r6, (mmu_hash_lock - PAGE_OFFSET)@l
10: lwarx r0,0,r6 /* take the mmu_hash_lock */ 10: lwarx r0,0,r6 /* take the mmu_hash_lock */
cmpi 0,r0,0 cmpwi 0,r0,0
bne- 11f bne- 11f
stwcx. r8,0,r6 stwcx. r8,0,r6
beq+ 12f beq+ 12f
11: lwz r0,0(r6) 11: lwz r0,0(r6)
cmpi 0,r0,0 cmpwi 0,r0,0
beq 10b beq 10b
b 11b b 11b
12: isync 12: isync
@ -512,12 +512,12 @@ _GLOBAL(flush_hash_pages)
lwz r8, TASK_CPU(r8) lwz r8, TASK_CPU(r8)
oris r8,r8,9 oris r8,r8,9
10: lwarx r0,0,r9 10: lwarx r0,0,r9
cmpi 0,r0,0 cmpwi 0,r0,0
bne- 11f bne- 11f
stwcx. r8,0,r9 stwcx. r8,0,r9
beq+ 12f beq+ 12f
11: lwz r0,0(r9) 11: lwz r0,0(r9)
cmpi 0,r0,0 cmpwi 0,r0,0
beq 10b beq 10b
b 11b b 11b
12: isync 12: isync