Make unicorn happy with TLB execution

This commit is contained in:
Lioncash 2018-03-01 20:13:37 -05:00
parent e3e57ca08e
commit d905278b86
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -537,6 +537,9 @@ void cpu_exec_init(CPUState *cpu, void *opaque)
// TODO: assert uc does not already have a cpu?
uc->cpu = cpu;
// Unicorn: Required to clean-slate TLB state
tlb_flush(cpu);
#ifndef CONFIG_USER_ONLY
// Unicorn: commented out