diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-01-11 12:40:25 +0000 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2016-01-16 12:01:23 +0000 |
commit | 232afac113dab9880a5e3a002d63b61d554a4b89 (patch) | |
tree | a35690c60e4c3d66f383cad69a6bb09fa29fb9d6 | |
parent | 4552a09dd4055c806b7df8c595dc0fb8951834be (diff) |
target-sparc: Don't flush TLB in cpu_load function
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 <peter.maydell@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r-- | target-sparc/machine.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target-sparc/machine.c b/target-sparc/machine.c index 3f3de4c65a..9d221ecfb8 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; } |