mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
4552a09dd4
commit
232afac113
|
@ -112,7 +112,6 @@ void cpu_save(QEMUFile *f, void *opaque)
|
||||||
int cpu_load(QEMUFile *f, void *opaque, int version_id)
|
int cpu_load(QEMUFile *f, void *opaque, int version_id)
|
||||||
{
|
{
|
||||||
CPUSPARCState *env = opaque;
|
CPUSPARCState *env = opaque;
|
||||||
SPARCCPU *cpu = sparc_env_get_cpu(env);
|
|
||||||
int i;
|
int i;
|
||||||
uint32_t tmp;
|
uint32_t tmp;
|
||||||
|
|
||||||
|
@ -213,6 +212,5 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
|
||||||
qemu_get_be64s(f, &env->ssr);
|
qemu_get_be64s(f, &env->ssr);
|
||||||
cpu_get_timer(f, env->hstick);
|
cpu_get_timer(f, env->hstick);
|
||||||
#endif
|
#endif
|
||||||
tlb_flush(CPU(cpu), 1);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue