From patchwork Wed Sep 28 08:15:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 610091 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp186956pvb; Wed, 28 Sep 2022 04:20:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7VIksCpYdYl8YHoDh8Skv3fZER1g/N8MjEYVsOJbPf11+Vqdfr27DWEwXF7yKet5xAMfuT X-Received: by 2002:a05:6214:f6f:b0:4ad:1599:3b7 with SMTP id iy15-20020a0562140f6f00b004ad159903b7mr25838808qvb.94.1664364007787; Wed, 28 Sep 2022 04:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664364007; cv=none; d=google.com; s=arc-20160816; b=NoTQFSW5USI+OVSGWFIgQEqClvXLiGzHbJp9HlFLJBeuVhYZOjSXS2etk0hikGv4ft ZDuWsptufoHd+avy9vMGLugqUmAKU78IJCFwH9EGfDgk+7I8IBCJCGkj37TXDjrhG7mc NPePJKTCxVIAFxt2s3xcoSogPg0YFweMugNJqLEsTEn84P/LUWiMH0qTFMqEtTf5aeJk VgIha/u/Mq4o0piQ1XDlkJIdJcrgee9rj1LfIttnJXGS0JRl8/WIlFj7G5ElAP6abdul YBBD1H/B3/FN+J22nZ8RraynPAkBTYV8uy5PKJ99xJEzLlZ0lBRXLdgJOmuE4Bv2JnBg Nc8Q== 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; bh=UwHywidPfehjkXp/kJ6T79Fe022LSXCYVHND6WPWu1s=; b=1IIVOl8DNYU2F9KIXZCqx+wlLn09LtfqLyBX/mt/GeaVxzfCXxwNAhylx2wrcxdcVi elVvd+uMHCatddBbhk/ODUz1fNL/pVF2gIxTPP6MShtZcseasvGuI0r+JKdUyURUDEP0 nE1kM8PE6q1L6e9Riqfg1GPMHynI2P0Ay7h/LuyBUsJj6+3CxVoAfCun5n23F8cX0lod DWp6DwQzl6TDA7Dr3NcpIkdePcs4JJshzvEG5KicfQRHRWpDj1Z/UEpzjRbwCCEPH9nx 6iz5sI0TAhtQt1BGk0ic/JpMiFw5zE3ZEtH0HmnYlWDXSCkhwT+BNVuGCnkGDrfnc8Xk W/5Q== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w1-20020ac87181000000b0034370f21c52si1974936qto.391.2022.09.28.04.20.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Sep 2022 04:20:07 -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; 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" Received: from localhost ([::1]:53932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odV6l-0003HP-87 for patch@linaro.org; Wed, 28 Sep 2022 07:20:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odSEL-0008FA-Kk for qemu-devel@nongnu.org; Wed, 28 Sep 2022 04:15:52 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:54455) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odSEE-0008G8-Aa for qemu-devel@nongnu.org; Wed, 28 Sep 2022 04:15:43 -0400 Received: from quad ([82.142.8.70]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MEFCF-1oTryE2ld7-00AEFz; Wed, 28 Sep 2022 10:15:35 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Cc: Richard Henderson , Laurent Vivier Subject: [PULL 33/38] linux-user: Convert signal number for FUTEX_FD Date: Wed, 28 Sep 2022 10:15:12 +0200 Message-Id: <20220928081517.734954-34-laurent@vivier.eu> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220928081517.734954-1-laurent@vivier.eu> References: <20220928081517.734954-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:3RAJaY3DtebYhEIu4IehU09BFpQeaT0lT0hcZ11RWkvrE/cQFsa wEyMBPp6rNu4hxk3Hsm/Oc1wDTOjfayGdZwIaI7I4CsjG2Kr51+uSz/80VTOCAAsEngcMEj fEmXGzyI5yd0spRz6HLsg45bmwZLjZmOe7QcUKsfKAPkH/ZMH/b3892Om7RcglDzfOK0lNS iuBSmWqGkbkhaRAhp11Jg== X-UI-Out-Filterresults: notjunk:1;V03:K0:LpcVzUnbprI=:xQnRAUpukqNi71hEwKBelt JcYzrXIJpAVr9KzFd48jtVbpVT11eqcIYGTj+XCmIuHDIlZgdTX8SJnmXMEtGt+aHv+rTrz+O PJjF4jGI45zgcs7zU+L6C8F56l+MPGOsdQkiqKZFqnyptGUwuFqdnuWjUTd+kGo1Ke/9pnQB1 cMOJ5CT6KTe4wk3YAfvsypjZLjsZBrUdpHnbtS41S5pFVsHPvQ+NJSlGVQB4L4UnAW4HsBZ6L +SZRsZYVUKOv1VAe4gT2iS3EDpMbnO0XOh9kVVxNAdvYib2mLtrZ89kK/37IfPmK742J1RjLk /HpV11j5UEf/teIR/klryrDBBl81Ec73yliCTe5loGz3Sgxz+36asK4+3pMKDFayQrC6Upjfw ny+ivHQV5mmS+ilFPSlruDxz+V3muApDl7dnKAWBCeYncf1laBypz0nCqxgEt8bT/Idrlygm0 KHCgaH2j+Hd1Mq6ZA0VO0ZWtjJqWffwFe/unJVYoGXARui7Cy11t1hUOsyEKMHPq3KhFbQ2Jq OygLRtHYkY4KrZfXLwx4dgBagJLuaATK1Ftqz506vpSuYiwU3AdNRpjTT04YRb43Q11myFEU4 B/vdNwSTNJHq1Klby2uHIoPvlQYOGdO060WU37t9ytY2vewR6Yt9er5FoY1/9dNEeH0vD8Kqa VPR3jyu0JWgn+kIGWsXqRBwbemXS8zjEpZB1bOqjMmsAjHFZuNThQKjYW1zgat8GctOld0H4W IYObqhTMb9C+rfK0pzCPETSlIFVsiJxoSRolAkk9vPmZoLdCSRmBLq8v77/93ownX+sqtis7B PHCO8KP Received-SPF: none client-ip=212.227.17.13; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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: Richard Henderson The val argument to FUTEX_FD is a signal number. Convert to match the host, as it will be converted back when the signal is delivered. Signed-off-by: Richard Henderson Reviewed-by: Laurent Vivier Message-Id: <20220829021006.67305-5-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index e2b6b564e6cb..3f144e3c1f5d 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7793,6 +7793,7 @@ static int do_futex(CPUState *cpu, bool time64, target_ulong uaddr, timeout = 0; break; case FUTEX_FD: + val = target_to_host_signal(val); timeout = 0; break; case FUTEX_CMP_REQUEUE: