Re: [PATCH v3 09/11] rules.mak: Add base-arch() rule

2020-05-22 Thread Philippe Mathieu-Daudé
On 5/22/20 6:24 AM, Richard Henderson wrote: > On 5/21/20 12:59 PM, Philippe Mathieu-Daudé wrote: >> +$(if $(findstring risc,$1),risc,\ > > Eh? riscv{32,64} vs openrisc. Nice catch, because with this patch openrisc builds with a riscv config-devices.h =) > >> +$(if $(fi

Re: [PATCH v3 09/11] rules.mak: Add base-arch() rule

2020-05-21 Thread Richard Henderson
On 5/21/20 12:59 PM, Philippe Mathieu-Daudé wrote: > + $(if $(findstring risc,$1),risc,\ Eh? riscv{32,64} vs openrisc. > + $(if $(findstring x86,$1),i386,\ Do we really not need an exact match for x86_64? > + $(if $(findstring aarch64,$1),arm,$1))) Exac

[PATCH v3 09/11] rules.mak: Add base-arch() rule

2020-05-21 Thread Philippe Mathieu-Daudé
Add a rule to return the base architecture for a QEMU target. The current list of TARGET_BASE_ARCH is: $ git grep TARGET_BASE_ARCH configure configure:7785:TARGET_BASE_ARCH="" configure:7795:TARGET_BASE_ARCH=i386 configure:7813:TARGET_BASE_ARCH=arm configure:7846:TARGET_BAS