powerpc: Remove CONFIG_POWER4_ONLY
Remove CONFIG_POWER4_ONLY, the option is badly named and only does two things: - It wraps the MMU segment table code. With feature fixups there is little downside to compiling this in. - It uses the newer mtocrf instruction in various assembly functions. Instead of making this a compile option just do it at runtime via a feature fixup. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
6cd3209967
commit
694caf0255
@@ -369,7 +369,15 @@ BEGIN_FTR_SECTION \
|
||||
END_FTR_SECTION_IFCLR(CPU_FTR_601)
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CONFIG_PPC64
|
||||
#define MTOCRF(FXM, RS) \
|
||||
BEGIN_FTR_SECTION_NESTED(848); \
|
||||
mtcrf (FXM), (RS); \
|
||||
FTR_SECTION_ELSE_NESTED(848); \
|
||||
mtocrf (FXM), (RS); \
|
||||
ALT_FTR_SECTION_END_NESTED_IFCLR(CPU_FTR_NOEXECUTE, 848)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This instruction is not implemented on the PPC 603 or 601; however, on
|
||||
* the 403GCX and 405GP tlbia IS defined and tlbie is not.
|
||||
|
Reference in New Issue
Block a user