diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-08-08 14:03:03 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-08-08 20:44:11 +0200 |
commit | 971fac2731e60f2143f35648b14fd2f1b5b2c1af (patch) | |
tree | d3614200ee3b6c7fd378fe582505ef97695bbc2e /trace/control-internal.h | |
parent | 50a001222737ca04feb77f9117a623b91d61f2cd (diff) | |
download | qemu-971fac2731e60f2143f35648b14fd2f1b5b2c1af.zip qemu-971fac2731e60f2143f35648b14fd2f1b5b2c1af.tar.gz qemu-971fac2731e60f2143f35648b14fd2f1b5b2c1af.tar.bz2 |
configure: unify case statements for CPU canonicalization
The CPU model has to be canonicalized to what Meson wants in the cross
file, to what Linux uses for its asm-$ARCH directories, and to what
QEMU uses for its user-mode emulation host/$ARCH directories. Do
all three in a single case statement, and check that the Linux and
QEMU directories actually exist.
At a small cost in repeated lines, this ensures that there are no hidden
ordering requirements between the case statements. In particular, commit
89e5b7935e9 ("configure: Fix linux-user host detection for riscv64",
2023-08-06) broke ppc64le because it assigned host_arch based on a
non-canonicalized version of $cpu.
Reported-by: Joel Stanley <joel@jms.id.au>
Fixes: 89e5b7935e9 ("configure: Fix linux-user host detection for riscv64", 2023-08-06)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Tested-by: Ilya Leoshkevich <iii@linux.ibm.com>
Tested-by: Michael Tokarev <mjt@tls.msk.ru>
Message-ID: <20230808120303.585509-4-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'trace/control-internal.h')
0 files changed, 0 insertions, 0 deletions