[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Power PC 440 compiler problems

From: Alan Modra
Subject: Re: Power PC 440 compiler problems
Date: Fri, 13 Feb 2004 09:42:06 +1030
User-agent: Mutt/1.4i

On Thu, Feb 12, 2004 at 08:27:11AM -0500, Duncan Irving wrote:
> Dwight,
>    I think there is a problem with the recommended power-elf compiler, 
> it does not like the tlbwe instruction for the PPC440 booke instruction 
> set and does not recognize it properly!
> These are the lines that do not work!
>  tlbwe       r4,r3,0                            # Write word 0 of TLB Entry
>  tlbwe       r5,r3,1                            # Write word 1 of TLB Entry
>  tlbwe       r6,r3,2                            # Write word 2 of TLB Entry
> I get -------->
> PPC440.dcba.1.1.4.s: Assembler messages:
> PPC440.dcba.1.1.4.s:99: Error: junk at end of line: `r4,r3,0'
> PPC440.dcba.1.1.4.s:99: Error: junk at end of line: `r5,r3,1'
> PPC440.dcba.1.1.4.s:99: Error: junk at end of line: `r6,r3,2'

This was probably fixed on mainline binutils with the following patch:

2003-12-10  Zack Weinberg  <address@hidden>

        * ppc-opc.c (MO): Make optional.
        (RAO, RSO, SHO): New optional forms of RA, RS, SH operands.
        (tlbwe): Accept for both PPC403 and BOOKE.  Make all operands optional.

$ powerpc-linux-as --version
GNU assembler 2.14.90 20040109
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `powerpc-linux'.
$ powerpc-linux-as -mbooke -mregnames /src/tmp/tlbwe.s
$ powerpc-linux-objdump -Mbooke -dr a.out

a.out:     file format elf32-powerpc

Disassembly of section .text:

00000000 <.text>:
   0:   7c 83 07 a4     tlbwe   r4,r3
   4:   7c a3 0f a4     tlbwe   r5,r3,1
   8:   7c c3 17 a4     tlbwe   r6,r3,2

Alan Modra
IBM OzLabs - Linux Technology Centre

reply via email to

[Prev in Thread] Current Thread [Next in Thread]