powerpc/32s: use CONFIG_PPC_BOOK3S_601 instead of reading PVR
Use CONFIG_PPC_BOOK3S_601 instead of reading PVR to know if it is a 601 or not. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/909c26db9facd7fe454695b303f952e019dd9eda.1566834712.git.christophe.leroy@c-s.fr
This commit is contained in:

committed by
Michael Ellerman

parent
88fb309409
commit
39097b9c6d
@@ -303,11 +303,9 @@ END_FTR_SECTION_IFSET(CPU_FTR_UNIFIED_ID_CACHE)
|
||||
mfspr r3,SPRN_L1CSR1
|
||||
ori r3,r3,L1CSR1_ICFI|L1CSR1_ICLFR
|
||||
mtspr SPRN_L1CSR1,r3
|
||||
#elif defined(CONFIG_PPC_BOOK3S_601)
|
||||
blr /* for 601, do nothing */
|
||||
#else
|
||||
mfspr r3,SPRN_PVR
|
||||
rlwinm r3,r3,16,16,31
|
||||
cmpwi 0,r3,1
|
||||
beqlr /* for 601, do nothing */
|
||||
/* 603/604 processor - use invalidate-all bit in HID0 */
|
||||
mfspr r3,SPRN_HID0
|
||||
ori r3,r3,HID0_ICFI
|
||||
|
Reference in New Issue
Block a user