Unrecognized opcode: `mtdcr'

2 messages, 2 authors, 2002-05-29 · open the first message on its own page

Unrecognized opcode: `mtdcr'

From: Stephen Cameron <hidden>
Date: 2002-05-29 18:48:22

Hi,

I just started trying to play with my new Ebony board...

I noticed now 'as' complains: Unrecognized opcode: `mtdcr'
when I do this:
	make ebony_config
	make mrproper
	make menuconfig
	make dep
	make zImage

But, if I do this:
	make walnut_config
	make mrproper
	make menuconfig
	make dpe
	make zImage

I can make a zImage just fine.

Of course I can manually add '-Wa,-m405' into my CFLAGS in
the Makefile, and it will build ok, but I'm thinking that's
not what I want to do.

My 'as' says:

[scameron@zuul sslinux]$ /usr/local/powerpc-linux/bin/as --version
GNU assembler 2.12
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'.

I also tried binutils 2.12.1, with the same results.

Any ideas?

Thanks,

-- steve


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: Unrecognized opcode: `mtdcr'

From: Tom Rini <hidden>
Date: 2002-05-29 19:05:44

On Wed, May 29, 2002 at 01:48:22PM -0500, Stephen Cameron wrote:
Hi,

I just started trying to play with my new Ebony board...

I noticed now 'as' complains: Unrecognized opcode: `mtdcr'
when I do this:
	make ebony_config
[snip]
But, if I do this:
	make walnut_config
[snip]
Any ideas?
I think we need to change arch/ppc/Makefile from:
ifdef CONFIG_40x
CFLAGS := $(CFLAGS) -Wa,-m405
endif

To:
ifdef CONFIG_4xx
CFLAGS := $(CFLAGS) -Wa,-m405
endif

For the moment.  Until there's some 440-specific opcodes we use (are
there any?) which means we'll need to do -Wa,-m440.

Matt, do you want to do this or shall I?

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help