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!
Alan Modra wrote:
On Thu, Feb 12, 2004 at 08:27:11AM -0500, Duncan Irving wrote:
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:
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
Senior Silicon Verification Engineer
One Chrysalis Way, Suite 300
Ottawa, Ontario, K2G 6P9
T: 613-723-9161 ext 4063