On 06/19/2017 10:52 PM, Thomas Huth wrote:
Commit 1f5c00cfdb8114c ("qom/cpu: move tlb_flush to cpu_common_reset")
moved the call to tlb_flush() from the target-specific reset handlers
into the common code qom/cpu.c file, and protected the call with
"#ifdef CONFIG_SOFTMMU" to avoid that it is called for linux-user
only targets. But since qom/cpu.c is common code, CONFIG_SOFTMMU is
*never* defined here, so the tlb_flush() was simply never executed
anymore. Fix it by introducing a wrapper for tlb_flush() in a file
that is re-compiled for each target, i.e. in translate-all.c.
Fixes: 1f5c00cfdb8114c1e3a13426588ceb64f82c9ddb
Signed-off-by: Thomas Huth<th...@redhat.com>
---
include/exec/cpu-common.h | 2 ++
qom/cpu.c | 5 ++---
translate-all.c | 8 ++++++++
3 files changed, 12 insertions(+), 3 deletions(-)
Reviewed-by: Richard Henderson <r...@twiddle.net>
r~