Re: GCC-3.3.6 and MIPS instruction "EHB"

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

 



Mohamed Bamakhrama wrote:
Hi *,
I am using GCC-3.3.6 for MIPS and tried to use the instruction "EHB"
(Execution Hazard Barrier). However, I get the following error:

Assembler messages:
Error: opcode not supported on this processor: mips32 (mips32) 'ehb'

Does anyone know if this instruction is supported in that version of
GCC or any later versions?
Moreover, is there any equivalent instructions that can be used instead?


ehb is only available on mips32r2. If you were using gcc 3.4.x or later you could pass -mips32r2 to GCC to enable the mips32r2 ISA. You may be able to do: -Wa,-mips32r2 to pass the option directly to gas.

Alternatively you could try something like this in your code:

	.set	push
	.set	mips32r2
	ehb
	.set	pop

The processor reference manuals are available on mips.com.

David Daney.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux