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