target/mips: Move common helpers from helper.c to cpu.c