From nobody Tue Feb 10 01:30:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.50 as permitted sender) client-ip=209.85.221.50; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f50.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1625423893; cv=none; d=zohomail.com; s=zohoarc; b=LFxM5ux/Unv8p8JM+/eTUEM/UBUNhS80jyS4gdbO1HOMI0Ou/y4euTqJ581w4z0Pn0AXCpKsO2UEy1J9SDac5LzmOKjZ+78Lj5g3o10O48/k9nnU0Vp1+o40mcoWNtCdfQtuhhXfa8rIOuZs9ZeG1FtvX7k/KX+4Ybifc+aLdXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625423893; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=u7pq/plXZYF6CkchyohXlECRjOPB05y9Xo+CLcNMUW8=; b=ZuOrq2haPl0oNGy9RHAg/m20vbj1cJnmdanAzXDNzpcwY2iMev6vTbNxxjS9l5evnO1Dr0iPqJCBs06p1Y/sn1auNkvUie+KH+pLqxuh3t7SCwfQ0gQ7ihim8t1Tm2SVCewfAMzp7r61w/Hxy/a3PSQyJd+tS3HIeCicp3eUcSo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mx.zohomail.com with SMTPS id 1625423893540925.6108156297399; Sun, 4 Jul 2021 11:38:13 -0700 (PDT) Received: by mail-wr1-f50.google.com with SMTP id a13so19202529wrf.10 for ; Sun, 04 Jul 2021 11:38:12 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (93.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.93]) by smtp.gmail.com with ESMTPSA id u15sm19186421wmq.48.2021.07.04.11.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 11:38:11 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=u7pq/plXZYF6CkchyohXlECRjOPB05y9Xo+CLcNMUW8=; b=sSZC9TLGxan2y/QPX2bBbBbZSO4oc5xvKtrMEiWZqfwSNP9sKgr+LNZj4L+oyPUYbn BVzO3iq8+tEZTLoKRuNDsziDtZTFc5+XfsyJh1kzvgHsKlhb3ikRG4kYu5ds4sVEhzGB BiFKZK8c4ooo1bNMgcCCqNL6Wi7NfOzsWWQ0euHBpTfLAxSbFkfNNDqdqoSRBsUK1Kna 8qY+BEtieTBaArd6yZAtkSc5x9Wv8mDjMmmmgzF86mWuy15IN+zpzT9HK+ALY/bh8/OP MynxcW0I1p5Ozgl1pXOPSi7AVyMLctRPlWBcIojYcvnVzK4S8fc9xjAkJf+7ZIi/Bqk0 YR+g== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=u7pq/plXZYF6CkchyohXlECRjOPB05y9Xo+CLcNMUW8=; b=CcgMXA+41D5g/ku5JFAp7969tj+wWtrfKJEoMkmdmTe5W2YzJQ2vvHmWJQN/m/fNKF ZneXAIYxVv6gcWKqr6DFNL62/RLoRLqvS8hQBlZdDZX+uPcS57N0f5hJcAz5rraLU+in 2Cl/hA/1snINFWTtTxuaKZhxhAtzday3P0u/JGActTNZz8/UqXoUiDyyBoVEQLYx2l4a 8NMyATeycpLBMciyjDY5qwJbCDdRqdorwk95F6KpIsuR/D3T7scsjhiO84YxYhlb2Z1x xg0s6yiXEAuj0eMdfY+cGB2T6ARUI4SZIP67OMH0MA2a/Pm+2EYuJi2t8mX8wAJ2VUA7 agNQ== X-Gm-Message-State: AOAM533+b17yVZTyHmtkW40Q1dzRIQIKA8cIIh6VKIIZ5DLZmEwY2WKe YIMxvwgv0hNmVeT6fIUPDOcNUNZHV1A= X-Google-Smtp-Source: ABdhPJzOQpL77PHdJ8VxjBmJjmAt5JMaEoMBT+hqlLRCBK+3o53JeakwzeFrMLfi3K6yxcKDrTmYhg== X-Received: by 2002:a5d:52c1:: with SMTP id r1mr11546808wrv.294.1625423891850; Sun, 04 Jul 2021 11:38:11 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Jiaxun Yang , Laurent Vivier , Aleksandar Rikalo , Taylor Simpson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno , Helge Deller Subject: [PATCH 03/12] linux-user/mips: Handle TARGET_EWOULDBLOCK as TARGET_EAGAIN Date: Sun, 4 Jul 2021 20:37:46 +0200 Message-Id: <20210704183755.655002-4-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210704183755.655002-1-f4bug@amsat.org> References: <20210704183755.655002-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1625423896596100001 Linux kernel defines EWOULDBLOCK as EAGAIN (since before v2.6.12-rc2). Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- linux-user/mips/target_syscall.h | 2 ++ linux-user/mips64/target_syscall.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/mips/target_syscall.h b/linux-user/mips/target_sysc= all.h index dd6fd7af8ea..3e558fdb4b4 100644 --- a/linux-user/mips/target_syscall.h +++ b/linux-user/mips/target_syscall.h @@ -21,6 +21,8 @@ struct target_pt_regs { }; =20 /* Target errno definitions taken from asm-mips/errno.h */ +#undef TARGET_EWOULDBLOCK +#define TARGET_EWOULDBLOCK TARGET_EAGAIN /* Operation would block */ #undef TARGET_ENOMSG #define TARGET_ENOMSG 35 /* Identifier removed */ #undef TARGET_EIDRM diff --git a/linux-user/mips64/target_syscall.h b/linux-user/mips64/target_= syscall.h index 8594955eec2..c54374c5a29 100644 --- a/linux-user/mips64/target_syscall.h +++ b/linux-user/mips64/target_syscall.h @@ -18,6 +18,8 @@ struct target_pt_regs { }; =20 /* Target errno definitions taken from asm-mips/errno.h */ +#undef TARGET_EWOULDBLOCK +#define TARGET_EWOULDBLOCK TARGET_EAGAIN /* Operation would block */ #undef TARGET_ENOMSG #define TARGET_ENOMSG 35 /* Identifier removed */ #undef TARGET_EIDRM --=20 2.31.1