]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/openrisc: Fix tlb flushing in mtspr
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 23 May 2018 02:45:51 +0000 (19:45 -0700)
committerStafford Horne <shorne@gmail.com>
Mon, 2 Jul 2018 15:05:28 +0000 (00:05 +0900)
commitfffde6695f4be3cf484f068f24e894280d7360ea
treea57e84a3446edbaaeea54915d049ffd83a12f400
parent2acaa2331b96ee92f0df213784f9b6454c3d5edc
target/openrisc: Fix tlb flushing in mtspr

The previous code was confused, avoiding the flush of the old entry
if the new entry is invalid.  We need to flush the old page if the
old entry is valid and the new page if the new entry is valid.

This bug was masked by over-flushing elsewhere.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
target/openrisc/sys_helper.c