qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] linux-user, configure: fix CPU canonicalization
@ 2023-08-07  9:48 Paolo Bonzini
  2023-08-07  9:48 ` [PATCH 1/3] configure: fix detection for x32 linux-user Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Paolo Bonzini @ 2023-08-07  9:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: richard.henderson, philmd

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.

While doing this, I noticed that linux-user won't work on x32, alpha
and 32-bit s390 these days, due to missing common-user/ fragments.
The first two patches clean up the directories.

Paolo Bonzini (3):
  linux-user: fix detection for x32
  linux-user: cleanup unused linux-user/include/host directories
  configure: unify case statements for CPU canonicalization

 configure                                   | 157 +++++++++++---------
 linux-user/include/host/alpha/host-signal.h |  55 -------
 linux-user/include/host/s390/host-signal.h  | 138 -----------------
 linux-user/include/host/x32/host-signal.h   |   1 -
 4 files changed, 87 insertions(+), 264 deletions(-)
 delete mode 100644 linux-user/include/host/alpha/host-signal.h
 delete mode 100644 linux-user/include/host/s390/host-signal.h
 delete mode 100644 linux-user/include/host/x32/host-signal.h

-- 
2.41.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-08-10 10:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07  9:48 [PATCH 0/3] linux-user, configure: fix CPU canonicalization Paolo Bonzini
2023-08-07  9:48 ` [PATCH 1/3] configure: fix detection for x32 linux-user Paolo Bonzini
2023-08-10 10:31   ` Philippe Mathieu-Daudé
2023-08-07  9:48 ` [PATCH 2/3] linux-user: cleanup unused linux-user/include/host directories Paolo Bonzini
2023-08-07 16:53   ` Ilya Leoshkevich
2023-08-07 19:41     ` Paolo Bonzini
2023-08-07  9:48 ` [PATCH 3/3] configure: unify case statements for CPU canonicalization Paolo Bonzini
2023-08-07 13:35   ` Paolo Bonzini
2023-08-07 13:45   ` Peter Maydell
2023-08-07 14:39     ` Paolo Bonzini
2023-08-07 16:13 ` [PATCH 0/3] linux-user, configure: fix " Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).