On Wed, 25 Nov 2020 15:56:31 -0500
Eduardo Habkost <ehabk...@redhat.com> wrote:

> Instead of a collection of #ifdefs on arch_init.c, define
> QEMU_ARCH inside each cpu.h file.
> 
> Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
> ---
> Cc: Richard Henderson <richard.hender...@linaro.org>
> Cc: Peter Maydell <peter.mayd...@linaro.org>
> Cc: Michael Rolnik <mrol...@gmail.com>
> Cc: Sarah Harris <s.e.har...@kent.ac.uk>
> Cc: "Edgar E. Iglesias" <edgar.igles...@gmail.com>
> Cc: Paolo Bonzini <pbonz...@redhat.com>
> Cc: Eduardo Habkost <ehabk...@redhat.com>
> Cc: Michael Walle <mich...@walle.cc>
> Cc: Laurent Vivier <laur...@vivier.eu>
> Cc: "Philippe Mathieu-Daudé" <f4...@amsat.org>
> Cc: Aurelien Jarno <aurel...@aurel32.net>
> Cc: Jiaxun Yang <jiaxun.y...@flygoat.com>
> Cc: Aleksandar Rikalo <aleksandar.rik...@syrmia.com>
> Cc: Anthony Green <gr...@moxielogic.com>
> Cc: Chris Wulff <crwu...@gmail.com>
> Cc: Marek Vasut <ma...@denx.de>
> Cc: Stafford Horne <sho...@gmail.com>
> Cc: David Gibson <da...@gibson.dropbear.id.au>
> Cc: Palmer Dabbelt <pal...@dabbelt.com>
> Cc: Alistair Francis <alistair.fran...@wdc.com>
> Cc: Sagar Karandikar <sag...@eecs.berkeley.edu>
> Cc: Bastian Koppelmann <kbast...@mail.uni-paderborn.de>
> Cc: Yoshinori Sato <ys...@users.sourceforge.jp>
> Cc: David Hildenbrand <da...@redhat.com>
> Cc: Cornelia Huck <coh...@redhat.com>
> Cc: Thomas Huth <th...@redhat.com>
> Cc: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk>
> Cc: Artyom Tarasenko <atar4q...@gmail.com>
> Cc: Guan Xuetao <g...@mprc.pku.edu.cn>
> Cc: Max Filippov <jcmvb...@gmail.com>
> Cc: qemu-devel@nongnu.org
> Cc: qemu-...@nongnu.org
> Cc: qemu-...@nongnu.org
> Cc: qemu-ri...@nongnu.org
> Cc: qemu-s3...@nongnu.org
> ---
>  target/alpha/cpu.h      |  1 +
>  target/arm/cpu.h        |  1 +
>  target/avr/cpu.h        |  1 +
>  target/cris/cpu.h       |  1 +
>  target/hppa/cpu.h       |  1 +
>  target/i386/cpu.h       |  1 +
>  target/lm32/cpu.h       |  1 +
>  target/m68k/cpu.h       |  1 +
>  target/microblaze/cpu.h |  1 +
>  target/mips/cpu.h       |  1 +
>  target/moxie/cpu.h      |  1 +
>  target/nios2/cpu.h      |  1 +
>  target/openrisc/cpu.h   |  1 +
>  target/ppc/cpu.h        |  1 +
>  target/riscv/cpu.h      |  1 +
>  target/rx/cpu.h         |  1 +
>  target/s390x/cpu.h      |  1 +
>  target/sh4/cpu.h        |  1 +
>  target/sparc/cpu.h      |  1 +
>  target/tricore/cpu.h    |  1 +
>  target/unicore32/cpu.h  |  1 +
>  target/xtensa/cpu.h     |  1 +
>  softmmu/arch_init.c     | 46 -----------------------------------------
>  23 files changed, 22 insertions(+), 46 deletions(-)

Much better :)

Reviewed-by: Cornelia Huck <coh...@redhat.com>


Reply via email to