[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC v2 21/34] core: virtualise CPU interfaces complete
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [RFC v2 21/34] core: virtualise CPU interfaces completely |
Date: |
Mon, 01 Jun 2015 10:11:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
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
- Re: [Qemu-devel] [RFC v2 21/34] core: virtualise CPU interfaces completely,
Paolo Bonzini <=