From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: David Gibson <david@gibson.dropbear.id.au>,
Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Cc: qemu-ppc@nongnu.org, alex.bennee@linaro.org,
qemu-devel@nongnu.org, rth@twiddle.net
Subject: Re: [Qemu-devel] [PATCH v4 3/3] target-ppc: tlbie/tlbivax should have global effect
Date: Thu, 15 Sep 2016 11:41:01 +1000 [thread overview]
Message-ID: <1473903661.8689.354.camel@kernel.crashing.org> (raw)
In-Reply-To: <20160915002531.GE15077@voom.fritz.box>
[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]
On Thu, 2016-09-15 at 10:25 +1000, David Gibson wrote:
> > void helper_booke206_tlbivax(CPUPPCState *env, target_ulong
> address)
> > {
> > - PowerPCCPU *cpu = ppc_env_get_cpu(env);
> > + CPUState *cs;
> >
> > if (address & 0x4) {
> > /* flush all entries */
> > @@ -2774,11 +2774,15 @@ void helper_booke206_tlbivax(CPUPPCState
> *env, target_ulong address)
> > if (address & 0x8) {
> > /* flush TLB1 entries */
> > booke206_invalidate_ea_tlb(env, 1, address);
> > - tlb_flush(CPU(cpu), 1);
> > + CPU_FOREACH(cs) {
> > + tlb_flush(cs, 1);
> > + }
> > } else {
> > /* flush TLB0 entries */
> > booke206_invalidate_ea_tlb(env, 0, address);
> > - tlb_flush_page(CPU(cpu), address & MAS2_EPN_MASK);
> > + CPU_FOREACH(cs) {
> > + tlb_flush_page(cs, address & MAS2_EPN_MASK);
> > + }
>
> Why are these explicit CPU_FOREACH()s instead of using the flags
> you've just bui
Because we haven't converted BookE to lazy TLB flushing yet...
Cheers,
Ben.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 855 bytes --]
next prev parent reply other threads:[~2016-09-15 3:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-14 5:53 [Qemu-devel] [PATCH v4 0/3] ppc: handle broadcast tlb flush Nikunj A Dadhania
2016-09-14 5:54 ` [Qemu-devel] [PATCH v4 1/3] target-ppc: add TLB_NEED_LOCAL_FLUSH flag Nikunj A Dadhania
2016-09-15 0:15 ` David Gibson
2016-09-14 5:54 ` [Qemu-devel] [PATCH v4 2/3] target-ppc: add flag in chech_tlb_flush() Nikunj A Dadhania
2016-09-15 0:20 ` David Gibson
2016-09-15 6:02 ` Nikunj A Dadhania
2016-09-15 6:16 ` David Gibson
2016-09-15 6:22 ` Benjamin Herrenschmidt
2016-09-15 6:25 ` David Gibson
2016-09-14 5:54 ` [Qemu-devel] [PATCH v4 3/3] target-ppc: tlbie/tlbivax should have global effect Nikunj A Dadhania
2016-09-15 0:25 ` David Gibson
2016-09-15 1:41 ` Benjamin Herrenschmidt [this message]
2016-09-15 1:48 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1473903661.8689.354.camel@kernel.crashing.org \
--to=benh@kernel.crashing.org \
--cc=alex.bennee@linaro.org \
--cc=david@gibson.dropbear.id.au \
--cc=nikunj@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).