MIPS: add handling for generic and EJTAG exceptions