OSDN Git Service

target/mips: Weaken TLB flush on UX,SX,KX,ASID changes
authorJames Hogan <james.hogan@imgtec.com>
Tue, 18 Jul 2017 11:55:48 +0000 (12:55 +0100)
committerYongbok Kim <yongbok.kim@imgtec.com>
Thu, 20 Jul 2017 21:42:26 +0000 (22:42 +0100)
commit9658e4c342e6ae0d775101f8f6bb6efb16789af1
tree88365564def6e2ab588da96c24a9e14e9cedbae1
parenteff6ff9431aa9776062a5f4a08d1f6503ca9995a
target/mips: Weaken TLB flush on UX,SX,KX,ASID changes

There is no need to invalidate any shadow TLB entries when the ASID
changes or when access to one of the 64-bit segments has been disabled,
since doing so doesn't reveal to software whether any TLB entries have
been evicted into the shadow half of the TLB.

Therefore weaken the tlb flushes in these cases to only flush the QEMU
TLB.

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