On 31/05/2015 08:11, Peter Crosthwaite wrote: > } > - ret = cpu_exec(cpu); > + ret = cpu->cpu_exec(cpu);
Perhaps a #ifdef TARGET_MULTI #define MULTI_CPU_HOOK(cpu, fn) (cpu->fn) #else #define MULTI_CPU_HOOK(cpu, fn) (fn) #endif to devirtualize the functions in the common case? Paolo > #ifdef CONFIG_PROFILER > tcg_time += profile_getclock() - ti; > #endif > @@ -1433,7 +1433,7 @@ void cpu_reload_memory_map(CPUState *cpu) > /* The CPU and TLB are protected by the iothread lock. */ > d = atomic_rcu_read(&cpu->as->dispatch); > cpu->memory_dispatch = d; > - tlb_flush(cpu, 1); > + cpu->tlb_flush(cpu, 1); > } > #endif