From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Alexander Graf <agraf@suse.de>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] ppc: CPU reset must flush translation buffer
Date: Mon, 21 May 2012 12:01:08 +1000 [thread overview]
Message-ID: <1337565668.2458.14.camel@pasglop> (raw)
In-Reply-To: <1337054780.6727.60.camel@pasglop>
Without that, reset from SLOF crashes in full emulation.
Reported-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
target-ppc/translate_init.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index ae03065..fbf7705 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -10285,6 +10285,7 @@ static void ppc_cpu_reset(CPUState *s)
env->error_code = 0;
/* Flush all TLBs */
tlb_flush(env, 1);
+ tb_flush(env);
}
static void ppc_cpu_initfn(Object *obj)
next parent reply other threads:[~2012-05-21 2:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1337054780.6727.60.camel@pasglop>
2012-05-21 2:01 ` Benjamin Herrenschmidt [this message]
2012-05-21 6:16 ` [Qemu-devel] ppc: CPU reset must flush translation buffer Alexander Graf
2012-05-21 6:26 ` Benjamin Herrenschmidt
2012-05-21 7:15 ` Peter Maydell
2012-05-21 7:39 ` Benjamin Herrenschmidt
2012-05-21 7:39 ` [Qemu-devel] [PATCH v2 1/2] ppc64: Rudimentary Support for extra page sizes on server CPUs Alexander Graf
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=1337565668.2458.14.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
/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).