bug-binutils
[Top][All Lists]
Advanced

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

Re: Power PC 440 compiler problems


From: Duncan Irving
Subject: Re: Power PC 440 compiler problems
Date: Fri, 13 Feb 2004 10:58:36 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Alan,

Where is this patch located? I can't find it on the http://ftp.gnu.org/gnu/binutils/ . It only has the 2.14 version!

Thanks,

    Duncan


Alan Modra wrote:
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

  


-- 
Duncan Irving

Senior Silicon Verification Engineer
Seaway Networks 
One Chrysalis Way, Suite 300
Ottawa, Ontario, K2G 6P9
T: 613-723-9161 ext 4063
F: 613-723-8244
E: address@hidden
W: www.seawaynetworks.com

reply via email to

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