From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 706FAC07E95 for ; Sun, 4 Jul 2021 17:09:05 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EFC0A61283 for ; Sun, 4 Jul 2021 17:09:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EFC0A61283 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:40788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m05c7-00039o-Sh for qemu-devel@archiver.kernel.org; Sun, 04 Jul 2021 13:09:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m05ao-00016V-6x for qemu-devel@nongnu.org; Sun, 04 Jul 2021 13:07:42 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:42751) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m05am-0006uI-KN for qemu-devel@nongnu.org; Sun, 04 Jul 2021 13:07:41 -0400 Received: by mail-wm1-x333.google.com with SMTP id j16-20020a05600c1c10b0290204b096b0caso2103054wms.1 for ; Sun, 04 Jul 2021 10:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ULn4pk7SYbRexpTbJwfXkh2AGTL4SFO3wLR63AwhQ8s=; b=KpZttHcHKKJf7lk7IbQaCvp59NCKnc0GL3qXqj69YnO3Tcpjjmn0N1vF79IcO6g0i2 UJgVa1og8HPZSH9t+VEGv7KdtexBfPV/57NShSfe/DrZcX+pJH2kpy9qJxOjJDT1pTDu IOaE9woYtlxiThJTDfK3W0EIRRnAzNtnY1hwblC2OwyzFRhb4QXs5JfsxbpCR8iaIikr sWYM4dtW+Wr1AU6PtfxyDIxuHr2X790MXP83hSYrV61Jwm3nCD/1cxHC3wgiz5xsTQzt ko61Ks/3n7rT/iDgE4CaxjXa5vIYGwcspr6LJObOztFbcBj/hzlzasoprhG4KsSKQbsn 2OKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=ULn4pk7SYbRexpTbJwfXkh2AGTL4SFO3wLR63AwhQ8s=; b=gzjjgZHWQ8EcO5aZ65RodHMbMfwC53yCliamSDiMqKFLBvnocYDL5WbSndsLJ5+arF TQvvCRA2C83dEpf3U7Ummx9fRmeBOP0au0plAwdc48mIaxzUm0lmbyWXv894Od2GZisM g6/Dply4LF7OMIfm4JHWI7curIyM5fPy0GS4A64MSKwXlfLKQxU4xQ4fpBi0Zb2v7DVw oiLmQ+CHF9uuLrT9j8W0UJktqe1zJ0KnBpKv/pGO/qIBnp/eSgyiTdnvfE5lnqcmEQHM pFWkqLAiWcBN1ybigYg4x9jndaRfFlnnMqLiLYzLZcg/PYSRVnyXh2UNiOY+/gimdqA/ hvaQ== X-Gm-Message-State: AOAM533kPXWOuogYklMsl7nALW/deG6zAneB5d4sxl7cUVn4oF8pGGFW gqIZU+JF0I4BLIvUpAplZ2chiFrgtQ8= X-Google-Smtp-Source: ABdhPJxY8nUFpqrGcMR+B1mnxeZVxic9sfca4xP+xp5WpKQJXsm4Itm7L3bu2QrL+iR9R9+Fz24sZg== X-Received: by 2002:a1c:f312:: with SMTP id q18mr10545851wmq.12.1625418458891; Sun, 04 Jul 2021 10:07:38 -0700 (PDT) Received: from x1w.. (93.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.93]) by smtp.gmail.com with ESMTPSA id u1sm11279906wmn.23.2021.07.04.10.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 10:07:38 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 0/4] target/mips: Rewrite UHI errno_mips() to allow building on Haiku OS Date: Sun, 4 Jul 2021 19:07:32 +0200 Message-Id: <20210704170736.617895-1-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Aleksandar Rikalo , Alexander von Gluck IV , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Zak , Leon Alrae , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Richard Zak reported a build failure on Haiku OS which is due=0D to using POSIX errno as array indexes:=0D https://www.mail-archive.com/qemu-devel@nongnu.org/msg820587.html=0D =0D Work around by using a GHashTable.=0D =0D Since we were reviewing the UHI (semihosting) spec, fix the errno=0D values and complete to support all the specified errnos.=0D =0D Regards,=0D =0D Phil.=0D =0D Philippe Mathieu-Daud=C3=A9 (4):=0D target/mips: Fix UHI error values=0D target/mips: Rename UHI err -> host_errno=0D target/mips: Rewrite UHI errno_mips() using GHashTable=0D target/mips: Complete UHI errno list and log unexpected errors=0D =0D target/mips/tcg/sysemu/mips-semi.c | 105 ++++++++++++++++++++++++-----=0D 1 file changed, 88 insertions(+), 17 deletions(-)=0D =0D -- =0D 2.31.1=0D =0D