]> git.proxmox.com Git - mirror_qemu.git/commit
target-mips: add restrictions for possible values in registers
authorLeon Alrae <leon.alrae@imgtec.com>
Fri, 11 Jul 2014 15:11:34 +0000 (16:11 +0100)
committerLeon Alrae <leon.alrae@imgtec.com>
Mon, 3 Nov 2014 11:48:34 +0000 (11:48 +0000)
commitba801af429aaa68f6cc03842c8b6be81a6ede65a
treecc5c23c6ee2cb7dfabdd846e72b683c939d71340
parenta63eb0ce0f5c43cf022022c5f4860aaf4f292a06
target-mips: add restrictions for possible values in registers

In Release 6 not all the values are allowed to be written to a register.
If the value is not valid or unsupported then it should stay unchanged.

For pre-R6 the existing behaviour has been changed only for CP0_Index register
as the current implementation does not seem to be correct - it looks like it
tries to limit the input value but the limit is higher than the actual
number of tlb entries.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>
target-mips/op_helper.c