On 6/21/22 00:51, Paolo Bonzini wrote:
Use the flags passed to the configure script for the ppc cross compiler,
which in fact default to those that are needed to get the 32-bit ISA.
Add the endianness flag so that it remains possible to use a ppc64le
compiler to compile VOF.
This also fixes compilation of TCG tests using a biarch compiler,
for example ppc64 tests on ppc64le.
Reported-by: Matheus Ferst <matheus.fe...@eldorado.org.br
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Probably you missed this, but last night (gmt-7) I sent:
make[1]: Entering directory `/home/rth/qemu/bld/pc-bios/vof'
cc -m32 -mbig-endian -mcpu=power4 -c -o entry.o
/home/rth/qemu/src/pc-bios/vof/entry.S
cc1: error: ‘-m32’ not supported in this configuration
make[1]: *** [entry.o] Error 1
This with a compiler I built myself,
$ cc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/rth/gcc/run/libexec/gcc/powerpc64le-unknown-linux-gnu/11.0.1/lto-wrapper
Target: powerpc64le-unknown-linux-gnu
Configured with: ../git-gcc/configure --prefix=/home/rth/gcc/run
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.1 20210321 (experimental) [master revision
19ff0b0:fca73fc:6af7b307f659a4f1845a9efd36ca37899515e234] (GCC)
With default configure options, gcc is not biarch.
It would be good to probe whether EXTRA_CFLAGS is actually usable.
r~