Hi, Attached patch fixes XContext filling on exception, and prevents R field to sometimes override BadVPN2 field. R field location was correct only when SEGBITS was 32, which is the case on MIPS32, but not MIPS64. Hervé