Revert r191947. The problem is not MIPS-specific and requires more
general solution.