OSDN Git Service

target/mips: Enable CP0_EBase.WG on MIPS64 CPUs
authorJames Hogan <james.hogan@imgtec.com>
Tue, 18 Jul 2017 11:55:59 +0000 (12:55 +0100)
committerYongbok Kim <yongbok.kim@imgtec.com>
Fri, 21 Jul 2017 02:23:44 +0000 (03:23 +0100)
commitbad63a8008a0aaefcd00542c89bee01623d7c9de
tree64a75f2dedc87d628f067f9400fd953d8b1f2a41
parent574da58e4678b3c09048f268821295422d8cde6d
target/mips: Enable CP0_EBase.WG on MIPS64 CPUs

Enable the CP0_EBase.WG (write gate) on the I6400 and MIPS64R2-generic
CPUs. This allows 64-bit guests to run KVM itself, which uses
CP0_EBase.WG to point CP0_EBase at XKPhys.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Yongbok Kim <yongbok.kim@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
target/mips/translate_init.c