Am 25.05.2015 um 15:22 schrieb 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 <pbonz...@redhat.com> > Cc: Richard Henderson <r...@twiddle.net> > Cc: Peter Maydell <peter.mayd...@linaro.org> > Cc: "Edgar E. Iglesias" <edgar.igles...@gmail.com> > Cc: "Andreas Färber" <afaer...@suse.de> > Cc: Eduardo Habkost <ehabk...@redhat.com> > Cc: Michael Walle <mich...@walle.cc> > Cc: Aurelien Jarno <aurel...@aurel32.net> > Cc: Leon Alrae <leon.al...@imgtec.com> > Cc: Anthony Green <gr...@moxielogic.com> > Cc: Jia Liu <pro...@gmail.com> > Cc: Alexander Graf <ag...@suse.de> > Cc: Blue Swirl <blauwir...@gmail.com> > Cc: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> > Cc: Bastian Koppelmann <kbast...@mail.uni-paderborn.de> > Cc: Guan Xuetao <g...@mprc.pku.edu.cn> > Cc: Max Filippov <jcmvb...@gmail.com> > Signed-off-by: Peter Crosthwaite <crosthwaite.pe...@gmail.com> > --- > exec.c | 4 ++-- > include/exec/exec-all.h | 2 +- > target-alpha/cpu.c | 2 +- > target-arm/cpu.c | 2 +- > target-cris/cpu.c | 2 +- > target-i386/cpu.c | 2 +- > target-lm32/cpu.c | 2 +- > target-m68k/cpu.c | 2 +- > target-microblaze/cpu.c | 2 +- > target-mips/cpu.c | 2 +- > target-moxie/cpu.c | 2 +- > target-openrisc/cpu.c | 2 +- > target-ppc/translate_init.c | 2 +- > target-s390x/cpu.c | 2 +- > target-sh4/cpu.c | 2 +- > target-sparc/cpu.c | 2 +- > target-tricore/cpu.c | 2 +- > target-unicore32/cpu.c | 2 +- > target-xtensa/cpu.c | 2 +- > 19 files changed, 20 insertions(+), 20 deletions(-)
Reviewed-by: Andreas Färber <afaer...@suse.de> I assume this will conflict with another patch adding an Error** argument - Eduardo, please help coordinating this. Thanks, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)