Skip to content

target/mips: Rewrite UHI errno_mips() to allow building on Haiku OS

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/mips: Fix UHI error valuestarget/mips/tcg/sysemu/mips-semi.c+9 -40 replies
2/4target/mips: Rename UHI err -> host_errnotarget/mips/tcg/sysemu/mips-semi.c+5 -50 replies
3/4target/mips: Rewrite UHI errno_mips() using GHashTabletarget/mips/tcg/sysemu/mips-semi.c+45 -174 replies
4/4target/mips: Complete UHI errno list and log unexpected errorstarget/mips/tcg/sysemu/mips-semi.c+38 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

Richard Zak reported a build failure on Haiku OS which is due to using POSIX errno as array indexes:
https://www.mail-archive.com/[email protected]/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(-)
Signature · 1 line
2.31.1