Re: [Qemu-devel] [PATCH qom v4 7/7] cpus: Change exec_init() arg to cpu, not env

2015-07-02 Thread Andreas Färber
Am 24.06.2015 um 04:31 schrieb Peter Crosthwaite: > diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h > index cffd21e..4bf13e0 100644 > --- a/include/exec/exec-all.h > +++ b/include/exec/exec-all.h > @@ -88,7 +88,7 @@ void QEMU_NORETURN cpu_io_recompile(CPUState *cpu, > uintptr_t reta

[Qemu-devel] [PATCH qom v4 7/7] cpus: Change exec_init() arg to cpu, not env

2015-06-23 Thread Peter Crosthwaite
The callers (most of them in target-foo/cpu.c) to this function all have the cpu pointer handy. Just pass it to avoid an ENV_GET_CPU() from core code (in exec.c). Cc: Paolo Bonzini Cc: Richard Henderson Cc: Peter Maydell Cc: "Edgar E. Iglesias" Cc: "Andreas Färber" Cc: Eduardo Habkost Cc: Mi