Re: [PATCH 2/2] build: try both native and cross compilers for linux-user tests

2022-06-22 Thread Matheus Kowalczuk Ferst
On 22/06/2022 10:47, Paolo Bonzini wrote: > Configure is trying to fall back on cross compilers for targets that > can have bi-arch or bi-endian toolchains, but there are many corner > cases where just checking the name can go wrong. For example, the RHEL > ppc64le compiler is bi-arch and

Re: [PATCH 0/6] Fix support for biarch compilers and cross cflags

2022-06-21 Thread Matheus Kowalczuk Ferst
On 21/06/2022 04:51, Paolo Bonzini wrote: > This series fixes two bugs with configure's cross compilation detection: > > - first, --cross-cflags is not obeyed by pc-bios/ compilation > > - second, on a ppc64le machine, the host compiler can be used for ppc64 >tests/tcg; That may be true for

Re: [PULL 20/33] configure: handle host compiler in probe_target_compiler

2022-06-20 Thread Matheus Kowalczuk Ferst
native tools for ppc64le-linux-user, and then do_compiler fails because the $target_cflags contains -mlittle-endian. > > On Thu, Jun 16, 2022 at 3:23 AM Alex Bennée wrote: >> >> >> Matheus Kowalczuk Ferst writes: >> >>> On 01/06/2022 15:05, Alex Bennée wrote:

Re: [PULL 20/33] configure: handle host compiler in probe_target_compiler

2022-06-15 Thread Matheus Kowalczuk Ferst
On 01/06/2022 15:05, Alex Bennée wrote: > From: Paolo Bonzini > > In preparation for handling more binaries than just cc, handle > the case of "probe_target_compiler $cpu" directly in the function, > setting the target_* variables based on the ones that are used to > build QEMU. The clang check

[RFC PATCH] tcg/ppc: implement rem[u]_i{32,64} with mod[su][wd]

2022-06-13 Thread Matheus Kowalczuk Ferst
Power ISA v3.0 introduced mod[su][wd] insns that can be used to implement rem[u]_i{32,64}. Signed-off-by: Matheus Ferst --- tcg/ppc/tcg-target.c.inc | 22 ++ tcg/ppc/tcg-target.h | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] configure: ignore --make

2022-06-08 Thread Matheus Kowalczuk Ferst
On 08/06/2022 12:54, Paolo Bonzini wrote: > On 6/8/22 16:21, Matheus Kowalczuk Ferst wrote: >> Also, we will not have this error at configure-time anymore, but I >> suppose that *BSD users will identify the problem if they try to build >> with non-gnu make. > > Y

Re: [PATCH] configure: update list of preserved environment variables

2022-06-08 Thread Matheus Kowalczuk Ferst
On 07/06/2022 07:49, Paolo Bonzini wrote: > INSTALL and LIBTOOL are not used anymore, but OBJCFLAGS is new and > was not listed. > > Signed-off-by: Paolo Bonzini > --- > configure | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/configure b/configure > index

Re: [PATCH] configure: ignore --make

2022-06-08 Thread Matheus Kowalczuk Ferst
On 07/06/2022 07:49, Paolo Bonzini wrote: > Setting the MAKE variable to a GNU Make executable does not really have > any effect: if a non-GNU Make is used, the QEMU Makefile will fail to > parse. Just remove everything related to --make and $make as dead code. > > Signed-off-by: Paolo Bonzini