* RE: tlbwe, rfci instructions and gcc cross assembler
@ 2002-04-11 21:53 Cameron, Steve
2002-04-11 22:10 ` Tom Rini
0 siblings, 1 reply; 6+ messages in thread
From: Cameron, Steve @ 2002-04-11 21:53 UTC (permalink / raw)
To: linuxppc-embedded
I wrote about trouble compiling linuxppc_2_4
kernel on i686->powerpc cross compiler:
[...]
> /usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__
> -D__KERNEL__ -I/home/scameron/ppc/testdir/include -c -o
> head_4xx.o head_4xx.S
> head_4xx.S: Assembler messages:
> head_4xx.S:111: Error: Unrecognized opcode: `tlbwe'
> head_4xx.S:112: Error: Unrecognized opcode: `tlbwe'
> head_4xx.S:420: Error: Unrecognized opcode: `rfci'
> make[1]: *** [head_4xx.o] Error 1
> make[1]: Leaving directory
I have a bit more info. Looking through my binutils
(v. 2.12.90.0.4) I see some references to "tlbwe" so
I would think my binutils is recent enough...but
perhaps still broken?
So thinking maybe I wasn't running the assembler
I thought I was running, I did this:
cd /home/scameron/ppc/testdir/arch/ppc/kernel
strace /usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/scameron/ppc/testdir/include -c -o head_4xx.o head_4xx.S
[...]
access("/usr/local/ppc/powerpc-linux/bin/as", X_OK) = 0
vfork() = 16198
wait4(-1, head_4xx.S: Assembler messages:
head_4xx.S:111: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:112: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:420: Error: Unrecognized opcode: `rfci'
[WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 16198
--- SIGCHLD (Child exited) ---
stat64("head_4xx.o", 0xbffff780) = -1 ENOENT (No such file or directory)
stat64("/tmp/cc7egQ8n.s", {st_mode=S_IFREG|0600, st_size=49044, ...}) = 0
unlink("/tmp/cc7egQ8n.s") = 0
_exit(1) = ?
So, I'm running /usr/local/ppc/powerpc-linux/bin/as
for my assembler, which seems right. Let me try:
strings /usr/local/ppc/powerpc-linux/bin/as | grep tlbwe
tlbwe
tlbwelo
tlbwehi
So...looks like my assembler has at least _some_ kind
of knowledge of the tlbwe instruction. Looking through
my binutils source, I see the "tlbwe" instruction in
a big table along with other instructions in
opcodes/ppc-opc.c
Hmmm, running out of ideas here.
-- steve
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tlbwe, rfci instructions and gcc cross assembler
2002-04-11 21:53 tlbwe, rfci instructions and gcc cross assembler Cameron, Steve
@ 2002-04-11 22:10 ` Tom Rini
0 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2002-04-11 22:10 UTC (permalink / raw)
To: Cameron, Steve; +Cc: linuxppc-embedded
On Thu, Apr 11, 2002 at 04:53:18PM -0500, Cameron, Steve wrote:
[snip]
> strace /usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/scameron/ppc/testdir/include -c -o head_4xx.o head_4xx.S
-Wa,-m405 is missing here.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: tlbwe, rfci instructions and gcc cross assembler
@ 2002-04-12 14:43 Cameron, Steve
2002-04-12 15:05 ` Tom Rini
0 siblings, 1 reply; 6+ messages in thread
From: Cameron, Steve @ 2002-04-12 14:43 UTC (permalink / raw)
To: Tom Rini; +Cc: linuxppc-embedded
Tom Rini [mailto:trini@kernel.crashing.org] wrote:
> On Thu, Apr 11, 2002 at 04:53:18PM -0500, Cameron, Steve wrote:
>
> [snip]
> > strace /usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__
> -D__KERNEL__ -I/home/scameron/ppc/testdir/include -c -o
> head_4xx.o head_4xx.S
>
> -Wa,-m405 is missing here.
Where should it go?
I tried all possibilities I could think of with no luck:
[scameron@quandary kernel]$ cat x
/usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/scameron/ppc/testdir/include -c -o head_4xx.o head_4xx.S -Wa,m405
/usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/scameron/ppc/testdir/include -c -Wa,m405 -o head_4xx.o head_4xx.S
/usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/scameron/ppc/testdir/include -Wa,m405 -c -o head_4xx.o head_4xx.S
/usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ -Wa,m405 -I/home/scameron/ppc/testdir/include -c -o head_4xx.o head_4xx.S
/usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__ -Wa,m405 -D__KERNEL__ -I/home/scameron/ppc/testdir/include -c -o head_4xx.o head_4xx.S
/usr/local/ppc/bin/powerpc-linux-gcc -Wa,m405 -D__ASSEMBLY__ -D__KERNEL__ -I/home/scameron/ppc/testdir/include -c -o head_4xx.o head_4xx.S
[scameron@quandary kernel]$ sh x
Assembler messages:
Error: can't open m405 for reading
m405: No such file or directory
head_4xx.S:111: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:112: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:420: Error: Unrecognized opcode: `rfci'
Assembler messages:
Error: can't open m405 for reading
m405: No such file or directory
head_4xx.S:111: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:112: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:420: Error: Unrecognized opcode: `rfci'
Assembler messages:
Error: can't open m405 for reading
m405: No such file or directory
head_4xx.S:111: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:112: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:420: Error: Unrecognized opcode: `rfci'
Assembler messages:
Error: can't open m405 for reading
m405: No such file or directory
head_4xx.S:111: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:112: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:420: Error: Unrecognized opcode: `rfci'
Assembler messages:
Error: can't open m405 for reading
m405: No such file or directory
head_4xx.S:111: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:112: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:420: Error: Unrecognized opcode: `rfci'
Assembler messages:
Error: can't open m405 for reading
m405: No such file or directory
head_4xx.S:111: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:112: Error: Unrecognized opcode: `tlbwe'
head_4xx.S:420: Error: Unrecognized opcode: `rfci'
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tlbwe, rfci instructions and gcc cross assembler
2002-04-12 14:43 Cameron, Steve
@ 2002-04-12 15:05 ` Tom Rini
0 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2002-04-12 15:05 UTC (permalink / raw)
To: Cameron, Steve; +Cc: linuxppc-embedded
On Fri, Apr 12, 2002 at 09:43:05AM -0500, Cameron, Steve wrote:
>
> Tom Rini [mailto:trini@kernel.crashing.org] wrote:
>
> > On Thu, Apr 11, 2002 at 04:53:18PM -0500, Cameron, Steve wrote:
> >
> > [snip]
> > > strace /usr/local/ppc/bin/powerpc-linux-gcc -D__ASSEMBLY__
> > -D__KERNEL__ -I/home/scameron/ppc/testdir/include -c -o
> > head_4xx.o head_4xx.S
> >
> > -Wa,-m405 is missing here.
>
> Where should it go?
>
> I tried all possibilities I could think of with no luck:
[snip]
> Assembler messages:
> Error: can't open m405 for reading
You did -Wa,m405, not -Wa,-m405. What tree is this from anyhow, this
has been fixed in linuxppc_2_4_devel for awhile now.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: tlbwe, rfci instructions and gcc cross assembler
@ 2002-04-12 15:10 Cameron, Steve
2002-04-12 15:25 ` Tom Rini
0 siblings, 1 reply; 6+ messages in thread
From: Cameron, Steve @ 2002-04-12 15:10 UTC (permalink / raw)
To: linuxppc-embedded
>
> You did -Wa,m405, not -Wa,-m405. What tree is this from anyhow, this
> has been fixed in linuxppc_2_4_devel for awhile now.
Doh! At least daily, I prove myself to be an idiot.
Of course it works if I put the dash in there.
I'm using linuxppc_2_4. I thought that'd be more
stable than linuxppc_2_4_devel. Maybe that wasn't
such a good choice.
I'll give linuxppc_2_4_devel a try, since I'm not sure
how to fix the Makefiles anyway. (I think
ASFLAGS = -Wa,-m405, but I'm don't know how to tie it in
with Config.in.)
Thanks,
-- steve
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tlbwe, rfci instructions and gcc cross assembler
2002-04-12 15:10 Cameron, Steve
@ 2002-04-12 15:25 ` Tom Rini
0 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2002-04-12 15:25 UTC (permalink / raw)
To: Cameron, Steve; +Cc: linuxppc-embedded
On Fri, Apr 12, 2002 at 10:10:39AM -0500, Cameron, Steve wrote:
> I'm using linuxppc_2_4. I thought that'd be more
> stable than linuxppc_2_4_devel. Maybe that wasn't
> such a good choice.
No, since linuxppc_2_4 doesn't have working 40x support in it.
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-04-12 15:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-11 21:53 tlbwe, rfci instructions and gcc cross assembler Cameron, Steve
2002-04-11 22:10 ` Tom Rini
-- strict thread matches above, loose matches on Subject: below --
2002-04-12 14:43 Cameron, Steve
2002-04-12 15:05 ` Tom Rini
2002-04-12 15:10 Cameron, Steve
2002-04-12 15:25 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.