Skip to contentSkip to conversation

VR4181A and SMVR4181A

PATCH Julian Scheel 2 participants 2 messages Feb 16, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,

Am Samstag, 15. Februar 2003 16:22 schrieb Kunihiko IMAI:

Quoted 5 lines

I met this error, too. This means that your assembler didn't recognize the instruction 'standby'.

To escape this error, quick and dirty method, replace 'standby' with 'cop0 0x21'. These means same instruction.

This don't helps for me. I get the same error, but with "cop00x21" instead of standby.
I think it has something to do with the compiler options.
I use -mcpu=r4600 -mips2 -Wa,--trap, which is set for VR41xx CPU. But standby seems to be a special option, not supported by r4600/mips2.
What compiler-options do you use?

--
Grüße,
Julian

#1 lore raw

Hi,

Quoted 2 lines · On Sun, 16 Feb 2003 18:20:47 +0100 Julian Scheel <[email protected]> wrote:

This don't helps for me. I get the same error, but with "cop00x21" instead of standby.

I'm sorry for shorten explanation. Now I'm at home and have enough document here...

o Rewrite 'standby' only in inline-assembler code, not any C symbol.

o Rewrite 'standby' with 'c0 0x21'.
Space or tab is required between 'c0' and '0x21'.

I thought 'cop0' op-code is also acceptable, but it may be my misunderstanding.

How I did to examine the mnemonic 'c0':

1. The users manual of VR-series says that machine code of 'standby' instruction is 0x42000021.

2. Make a file which contains only this code;

	perl -e 'printf "\x21\x00\x00\x42";' > standby.bin
	(Byte sequence is reversed because of little-endian)

3. Disassemble the file
mipsel-linux-objdump -b binary -mmips:4600 -D standby.bin

Thanks.
_._. __._ _ . ... _ .___ ._. _____ _... ._ _._ _.._. .____ _ . ... _

Kunihiko IMAI