target/ppc: Fix synchronization of mttcg with broadcast TLB flushes
commit74c4912f097bab98a8b0f8ec2bee1db269505c14
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 Feb 2019 17:00:25 +0000 (15 18:00 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 25 Feb 2019 22:21:25 +0000 (26 09:21 +1100)
treea8ecfef30da295438ef06c2fd37a91e2125cb653
parent34525595fb379796241b0f3a9946bb21c4da1178
target/ppc: Fix synchronization of mttcg with broadcast TLB flushes

Let's use the generic helper tlb_flush_all_cpus_synced() instead
of iterating the CPUs ourselves.

We do lose the optimization of clearing the "other" CPUs "need flush"
flags but this shouldn't be a problem in practice.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20190215170029.15641-9-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/helper_regs.h