[mips] Reapply r179420 and r179421.