[PATCH 0/4] target/mips: Rewrite UHI errno_mips() to allow building on Haiku OS

Philippe Mathieu-Daudé posted 4 patches 4 years, 7 months ago
Test checkpatch failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210704170736.617895-1-f4bug@amsat.org
Maintainers: Jiaxun Yang <jiaxun.yang@flygoat.com>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Aurelien Jarno <aurelien@aurel32.net>, Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
target/mips/tcg/sysemu/mips-semi.c | 105 ++++++++++++++++++++++++-----
1 file changed, 88 insertions(+), 17 deletions(-)
[PATCH 0/4] target/mips: Rewrite UHI errno_mips() to allow building on Haiku OS
Posted by Philippe Mathieu-Daudé 4 years, 7 months ago
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