Skip to content

Commit f31b035

Browse files
author
Leon Alrae
committed
target-mips: correctly handle access to unimplemented CP0 register
Release 6 limits the number of cases where software can cause UNDEFINED or UNPREDICTABLE behaviour. In this case, when accessing reserved / unimplemented CP0 register, writes are ignored and reads return 0. In pre-R6 the behaviour is not specified, but generating RI exception is not what the real HW does. Additionally, remove CP0 Random register as it became reserved in Release 6. Signed-off-by: Leon Alrae <[email protected]> Reviewed-by: Yongbok Kim <[email protected]>
1 parent ba801af commit f31b035

File tree

1 file changed

+260
-278
lines changed

1 file changed

+260
-278
lines changed

0 commit comments

Comments
 (0)