From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIbsu-0004Jo-HG for qemu-devel@nongnu.org; Mon, 11 Jan 2016 07:47:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIbst-0008Cq-PI for qemu-devel@nongnu.org; Mon, 11 Jan 2016 07:47:44 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:59285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIbst-0008Cg-Am for qemu-devel@nongnu.org; Mon, 11 Jan 2016 07:47:43 -0500 From: Peter Maydell Date: Mon, 11 Jan 2016 12:40:25 +0000 Message-Id: <1452516028-25218-6-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1452516028-25218-1-git-send-email-peter.maydell@linaro.org> References: <1452516028-25218-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH v2 5/8] target-sparc: Don't flush TLB in cpu_load function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Juan Quintela , patches@linaro.org, Mark Cave-Ayland , Blue Swirl , Amit Shah , Paolo Bonzini There's no need to flush the TLB in the SPARC cpu_load function: we're guaranteed to be loading state into a fresh clean configuration. Signed-off-by: Peter Maydell --- target-sparc/machine.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target-sparc/machine.c b/target-sparc/machine.c index 3f3de4c..9d221ec 100644 --- a/target-sparc/machine.c +++ b/target-sparc/machine.c @@ -112,7 +112,6 @@ void cpu_save(QEMUFile *f, void *opaque) int cpu_load(QEMUFile *f, void *opaque, int version_id) { CPUSPARCState *env = opaque; - SPARCCPU *cpu = sparc_env_get_cpu(env); int i; uint32_t tmp; @@ -213,6 +212,5 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id) qemu_get_be64s(f, &env->ssr); cpu_get_timer(f, env->hstick); #endif - tlb_flush(CPU(cpu), 1); return 0; } -- 1.9.1