[PATCH] powerpc: Add support for early tlbilx opcode

Michael Ellerman michael at ellerman.id.au
Tue Apr 7 16:43:41 EST 2009


On Tue, 2009-04-07 at 01:13 -0500, Kumar Gala wrote:
> During the ISA 2.06 development the opcode for tlbilx changed and some
> early implementations used to old opcode.  Add support for a MMU_FTR
> fixup to deal with this.
> 
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
>  arch/powerpc/include/asm/mmu.h        |    6 ++++++
>  arch/powerpc/include/asm/ppc-opcode.h |   11 ++++++++++-
>  arch/powerpc/kernel/cputable.c        |    2 +-
>  arch/powerpc/mm/tlb_nohash_low.S      |   14 +++++++++++++-
>  4 files changed, 30 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h
> index cbf1543..86d2366 100644
> --- a/arch/powerpc/include/asm/mmu.h
> +++ b/arch/powerpc/include/asm/mmu.h
> @@ -52,6 +52,12 @@
>   */
>  #define MMU_FTR_NEED_DTLB_SW_LRU	ASM_CONST(0x00200000)
>  
> +/* This indicates that the processor uses the wrong opcode for tlbilx
> + * instructions.  During the ISA 2.06 development the opcode for tlbilx
> + * changed and some early implementations used to old opcode
> + */
> +#define MMU_FTR_TLBILX_EARLY_OPCODE	ASM_CONST(0x00400000)

You're actually going to ship those parts? :)

It seems a pity to use up a feature bit.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090407/2bc4daf5/attachment.pgp>


More information about the Linuxppc-dev mailing list