From patchwork Wed Jun 8 05:19:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 579809 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp5796022max; Tue, 7 Jun 2022 22:24:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypG1Ayx0KNsrnN7Zs/ZyXXZDHAA9S7z7EM6Tb4shR4dzfd05qPSMM2zt48bBhTvQxJSEOv X-Received: by 2002:a05:622a:11ca:b0:304:c340:c37f with SMTP id n10-20020a05622a11ca00b00304c340c37fmr25778963qtk.336.1654665894914; Tue, 07 Jun 2022 22:24:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665894; cv=none; d=google.com; s=arc-20160816; b=OCsmzCTHzgQA7Bpl088RCNoGmdBD2aOnvoDJ3kLu0cP4pqHMPfbzYuK8BD9tt6Xhms r/weyE7hlQgkY1/NUigvkSp5+SiRkFcrPGckEjNNvgQI5cmvBXYdn6gR3z9KZjv+Vxbp n5tZPXBZ9IkyiemNHt5lMo/0KtIIi2a34FvEsGyiYf1Z6DJN9hNRr4mo7PgUgOVqyNW5 5ztdr3LkQZNXzIdLHXLEfb6czSKNcY3D292C3J31TW6ZZsSog49gi3V6I++nrwAQcMiF vtD+mP6wtjV/+DIFTD38TT7uCbsz2XUVlb/4LQPGDauYpW1rVbmhe/pGvYDWAIz1M9QE k9aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oYsK2DCkJDRZ/LkA4A11UkQEUx69l+6MA6r9SJofgvk=; b=LiUDSAPnwTKyBLOGIszVyWhlvCGKR0XnM13HIwq8aQmVlm7ImVWesxl9FRnBaR7bio TtjvlYxbIJzYYM1sTAyX4VG/ieYJG9g7b4dwdPASY1dGPS0AUL0diS3jf3b81/7jYfOd izWxlD+QRIbcECWCOzZCA832d1SC+bnj9yCd9O/E4FIFuVjLSdGhFHzVz9nFTG5onv0N zJ/ffxYqHe/DiPJKWx0ZQMCFVRZZW3joV9Y6QeDFmbflqywVf6tAYPti9f7nNka3R5jt gzc5WDTLDAfhhlPli1cWOP5PyKhvnO+fKazB24hbe3YHe8DwYeV5JpytQCnIwUnUY9cv 28cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WlAIQPL8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v6-20020a379306000000b006a59f8a799bsi10057315qkd.748.2022.06.07.22.24.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jun 2022 22:24:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WlAIQPL8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:38706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyoBa-0002fm-Fw for patch@linaro.org; Wed, 08 Jun 2022 01:24:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyo6h-0006q4-W3 for qemu-devel@nongnu.org; Wed, 08 Jun 2022 01:19:52 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:41583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyo6g-000228-8d for qemu-devel@nongnu.org; Wed, 08 Jun 2022 01:19:51 -0400 Received: by mail-pg1-x534.google.com with SMTP id e66so17882269pgc.8 for ; Tue, 07 Jun 2022 22:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oYsK2DCkJDRZ/LkA4A11UkQEUx69l+6MA6r9SJofgvk=; b=WlAIQPL8OiayRjLCifNs79QaDKpEifcUQx1z3uPK0G0t2ggLy2kCimAFrJ+iXzf1YO etta8vcg0eV+IhdsGEcZvz5dWwY64o7GfrH8lrnSXOvN+AuLKXX+l3UcJDc90IKlI7fN iUjOnCqPr4InW7iIS+JOm8AkvsJdMcAZnZ7I7YpZMc5HDB1LEw6zF6T9UoEFzYqnRVd5 1R8BDqK63kuA0uasFRaoQwaI/+YXuoVunEuitPbyh6Pb32F8+tN3THz4A+EXA0z32WQ0 detY71+Ut4RB5ITQk7d6IU7n0zbpyNVbJ5ND1gjA1BdhsVlh98Kizxe4s1IraOoAadkX uOjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oYsK2DCkJDRZ/LkA4A11UkQEUx69l+6MA6r9SJofgvk=; b=XydYEaFkswnUtqmlWjbZwHIfZ31kOFTaSmdfj9kjmAkpXU19MHpqhnwaPj4f+fJw/g 9B4YUBANCVya6G2gF3jZ/EBWEQoiHylf6nM+UKphhYuiWNk/b1WsFGuFKWhsPyROaxbe 45AW7QA2eigtUdzKxbqNQqObCBFEetS8XFLMqQPk/lJ8oQULxlGPtc6MyMgBBdhyHi9u tf5dLBR1lg0HdWQIDvgGIW2NTbe3oerCkQLPXSQhjl/SMdrshuom4fOJ47BJB3FCdSga F2iOkA2+Tt1LpofemzeQ1Q6Ce3r82VilHqiamnzDG4pz6MDC1B3wSvrwlZTU6dM453YN 3Odg== X-Gm-Message-State: AOAM5306XSEBIHrlzxXRQuwLEK+DNhntGYUVHdm0aONIGHvKURHez/QT zx49FuQj5/1cAOpF7PEKAbcfuft/KPXr0Q== X-Received: by 2002:a62:1784:0:b0:51b:bc40:28a7 with SMTP id 126-20020a621784000000b0051bbc4028a7mr32905577pfx.55.1654665588789; Tue, 07 Jun 2022 22:19:48 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:c626:2f70:ac99:7c97]) by smtp.gmail.com with ESMTPSA id k8-20020a170902d58800b001641244d051sm13378807plh.257.2022.06.07.22.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:19:48 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: f4bug@amsat.org Subject: [PATCH v4 02/11] target/mips: Add UHI errno values Date: Tue, 7 Jun 2022 22:19:36 -0700 Message-Id: <20220608051945.802339-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220608051945.802339-1-richard.henderson@linaro.org> References: <20220608051945.802339-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From the Unified Hosting Interface, MD01069 Reference Manual, version 1.1.6, 06 July 2015. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/mips/tcg/sysemu/mips-semi.c | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/target/mips/tcg/sysemu/mips-semi.c b/target/mips/tcg/sysemu/mips-semi.c index ac12c802a3..2a039baf4c 100644 --- a/target/mips/tcg/sysemu/mips-semi.c +++ b/target/mips/tcg/sysemu/mips-semi.c @@ -74,6 +74,46 @@ enum UHIOpenFlags { UHIOpen_EXCL = 0x800 }; +enum UHIErrno { + UHI_EACCESS = 13, + UHI_EAGAIN = 11, + UHI_EBADF = 9, + UHI_EBADMSG = 77, + UHI_EBUSY = 16, + UHI_ECONNRESET = 104, + UHI_EEXIST = 17, + UHI_EFBIG = 27, + UHI_EINTR = 4, + UHI_EINVAL = 22, + UHI_EIO = 5, + UHI_EISDIR = 21, + UHI_ELOOP = 92, + UHI_EMFILE = 24, + UHI_EMLINK = 31, + UHI_ENAMETOOLONG = 91, + UHI_ENETDOWN = 115, + UHI_ENETUNREACH = 114, + UHI_ENFILE = 23, + UHI_ENOBUFS = 105, + UHI_ENOENT = 2, + UHI_ENOMEM = 12, + UHI_ENOSPC = 28, + UHI_ENOSR = 63, + UHI_ENOTCONN = 128, + UHI_ENOTDIR = 20, + UHI_ENXIO = 6, + UHI_EOVERFLOW = 139, + UHI_EPERM = 1, + UHI_EPIPE = 32, + UHI_ERANGE = 34, + UHI_EROFS = 30, + UHI_ESPIPE = 29, + UHI_ETIMEDOUT = 116, + UHI_ETXTBSY = 26, + UHI_EWOULDBLOCK = 11, + UHI_EXDEV = 18, +}; + static int errno_mips(int host_errno) { /* Errno values taken from asm-mips/errno.h */