This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC-3.3.6 and MIPS instruction "EHB"


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]