qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] target/mips: Rewrite UHI errno_mips() to allow building on Haiku OS
@ 2021-07-04 17:07 Philippe Mathieu-Daudé
  2021-07-04 17:07 ` [PATCH 1/4] target/mips: Fix UHI error values Philippe Mathieu-Daudé
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-07-04 17:07 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Aleksandar Rikalo, Alexander von Gluck IV,
	Alex Bennée, Richard Henderson, Thomas Huth,
	Philippe Mathieu-Daudé, Richard Zak, Leon Alrae,
	Aurelien Jarno

Richard Zak reported a build failure on Haiku OS which is due
to using POSIX errno as array indexes:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg820587.html

Work around by using a GHashTable.

Since we were reviewing the UHI (semihosting) spec, fix the errno
values and complete to support all the specified errnos.

Regards,

Phil.

Philippe Mathieu-Daudé (4):
  target/mips: Fix UHI error values
  target/mips: Rename UHI err -> host_errno
  target/mips: Rewrite UHI errno_mips() using GHashTable
  target/mips: Complete UHI errno list and log unexpected errors

 target/mips/tcg/sysemu/mips-semi.c | 105 ++++++++++++++++++++++++-----
 1 file changed, 88 insertions(+), 17 deletions(-)

-- 
2.31.1



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

end of thread, other threads:[~2021-07-04 18:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-04 17:07 [PATCH 0/4] target/mips: Rewrite UHI errno_mips() to allow building on Haiku OS Philippe Mathieu-Daudé
2021-07-04 17:07 ` [PATCH 1/4] target/mips: Fix UHI error values Philippe Mathieu-Daudé
2021-07-04 17:07 ` [PATCH 2/4] target/mips: Rename UHI err -> host_errno Philippe Mathieu-Daudé
2021-07-04 17:07 ` [PATCH 3/4] target/mips: Rewrite UHI errno_mips() using GHashTable Philippe Mathieu-Daudé
2021-07-04 17:25   ` Peter Maydell
2021-07-04 18:25     ` Philippe Mathieu-Daudé
2021-07-04 18:38   ` Thomas Huth
2021-07-04 18:44     ` Philippe Mathieu-Daudé
2021-07-04 17:07 ` [PATCH 4/4] target/mips: Complete UHI errno list and log unexpected errors Philippe Mathieu-Daudé
2021-07-04 17:23   ` Peter Maydell
2021-07-04 18:25     ` Philippe Mathieu-Daudé

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).