OSDN Git Service

target-sparc: replace the last tlb entry when no free entries left
authorArtyom Tarasenko <atar4qemu@gmail.com>
Tue, 26 Jan 2016 13:42:50 +0000 (14:42 +0100)
committerArtyom Tarasenko <atar4qemu@gmail.com>
Wed, 18 Jan 2017 21:03:44 +0000 (22:03 +0100)
commit4797a6851975c1239df440c5f01d8566e63717bb
tree01c8a56e0def240f3f5c856b72c05468ffbb5381
parent2f1b52920205863024cc86007e88557f4c2c898e
target-sparc: replace the last tlb entry when no free entries left

Implement the behavior described in the chapter 13.9.11 of
UltraSPARC T1™ Supplement to the UltraSPARC Architecture 2005:

"If a TLB Data-In replacement is attempted with all TLB
entries locked and valid, the last TLB entry (entry 63) is
replaced."

Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
target/sparc/ldst_helper.c