Which toolchain support fork/yield instruction or how can I compile one toolchain to support them

This topic contains 1 reply, has 1 voice, and was last updated by  hualab 3 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31825

    hualab
    Member

    When I use linaro 4.8.1 GCC for MIPS, I have the following compiling error
    Error: opcode not supported on this processor: mips32r2 (mips32r2) `yield $2,$0′

    I need toolchain whcih support yield/fork instruction or some special compiling options need in Linux kernel (3.10.12)

    #39025

    hualab
    Member

    Solve it by adding .set mips32r2 and .set mt before yield instruction

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.