flush TLBs at cpu reset
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1248 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
662f3c86ec
commit
bb05683b12
@ -1553,6 +1553,7 @@ extern int ram_size;
|
|||||||
void cpu_reset(CPUSPARCState *env)
|
void cpu_reset(CPUSPARCState *env)
|
||||||
{
|
{
|
||||||
memset(env, 0, sizeof(*env));
|
memset(env, 0, sizeof(*env));
|
||||||
|
tlb_flush(env, 1);
|
||||||
env->cwp = 0;
|
env->cwp = 0;
|
||||||
env->wim = 1;
|
env->wim = 1;
|
||||||
env->regwptr = env->regbase + (env->cwp * 16);
|
env->regwptr = env->regbase + (env->cwp * 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user