MIPS: R2: Try to bulletproof instruction_hazard against miss-compilation.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 22 Dec 2005 12:41:29 +0000 (13:41 +0100)
committer <ralf@denk.linux-mips.net> <>
Tue, 10 Jan 2006 13:39:08 +0000 (13:39 +0000)
commit7043ad4f4c81914ca9e2cd2208c8f4801ed63735
treecbc3d8384665ffc1bf02bac46827097ed5cd0b68
parent15265251c5c68fbabdf561cf704e3e305349715a
MIPS: R2: Try to bulletproof instruction_hazard against miss-compilation.

Gcc has a tradition of misscompiling the previous construct using the
address of a label as argument to inline assembler.  Gas otoh has the
annoying difference between la and dla which are only usable for 32-bit
rsp. 64-bit code, so can't be used without conditional compilation.
The alterantive is switching the assembler to 64-bit code which happens
to work right even for 32-bit code ...

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/hazards.h