From patchwork Thu Mar 24 08:20:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 553898 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp4184669mag; Thu, 24 Mar 2022 01:22:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFO22ChJ+EdlaaQZZJCY+5P0tha5hjiIMGNZr8qbjAffHrK/Oc7FgPuEHHRaXIUh9/2xXY X-Received: by 2002:ac8:5fc5:0:b0:2e1:fd15:a68e with SMTP id k5-20020ac85fc5000000b002e1fd15a68emr3424142qta.140.1648110130532; Thu, 24 Mar 2022 01:22:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648110130; cv=none; d=google.com; s=arc-20160816; b=zB1sWwAaE75aVLHGk2amGVIzRH+To0+tS3MqS5DXVmsl+kcmBpRQotHB4zr9ymMOwF RIqLdlwI6+PhB4BOkyKtWAJtUhKZ+e27vQ+CTPMSQvrqao7f1s23QpgpDC/e4L+2jTm/ /mmCoObAUjg/6t3UqOwATXWlv1yl7at1ym0DvxRBOwiEPmsMJaWgVmpr4ATobxC4XB8o ScFlujUevBrxuWvI7uR+E/aTKWtvVECPjWySdQtce4SYHhB+ZI3SvLYnFhuRJF65UEAb BJIcnoxtVwiSsZEpkedMAd0ezKXTnUYw9fHM/oKYHFfgMo3gP+QZaor/QC1JmlnGuBpN EJ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from; bh=aooQi0ERL/QdmFrGpEmqHN8H2NpJqSt7Izs2gmK3Fog=; b=pCH5Nq3Wyywq3GSdMoTSLPALmI0+FGqmt68stQwbXdzurbVGVaaw/0XyPUUj2McC9m fV/A2H78eO5yaweT5imak44gmVgvQOtDnlIeuDiXXxWxCe3LK3bdSs9p3MPw/ynHqJrj g9S5CpB98ZU65A1yYt62FtQxt4VHDwWuegOg6PWl2JBGbd5/YNrireenrhWbf2gNCMpR tdta8ZxaORX49O7bmydVRillow5vnfmOJhBB9IwNKqLxa5OJ99+F9ez4/nQXxLjG6teb XBjU1Z//ViUUXAV6GAYVOrBrinTEnUX4avyxOLHLzCYUthxczYmNnbCks5i0ITy7hzkg XJoQ== 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 p2-20020a0cfac2000000b00440e46a7ba4si4855067qvo.66.2022.03.24.01.22.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Mar 2022 01:22:10 -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]:57014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXIjR-00063C-HE for patch@linaro.org; Thu, 24 Mar 2022 04:22:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXIhn-0005xg-SP for qemu-devel@nongnu.org; Thu, 24 Mar 2022 04:20:28 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:39315) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXIhl-0003Ps-Qv for qemu-devel@nongnu.org; Thu, 24 Mar 2022 04:20:27 -0400 Received: from quad ([82.142.12.150]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MyK1E-1oGcGZ3Ji0-00yjHa; Thu, 24 Mar 2022 09:20:23 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 08/10] linux-user/arm: Implement __kernel_memory_barrier Date: Thu, 24 Mar 2022 09:20:14 +0100 Message-Id: <20220324082016.3463521-9-laurent@vivier.eu> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220324082016.3463521-1-laurent@vivier.eu> References: <20220324082016.3463521-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:Z/NlUyply1+7e9wKf2c6YVxP2JU/sJwneqMS8vQBL2bQbEIfwk6 pgUQ8zs5Hs5gdCuZT3iPrwKRuxHd5JIxHvZtkU7mOVrdO2K+xA02QA/AC2Ku2doUEWj4o8S rQijBXVyNebwx7Y7gxMVMGxnH1ritZipLKvPZhnd3VGK7QTZt0n1QHkyCbEDFElyxZNemuG WGW4T1Tj87OZNIb99BUoA== X-UI-Out-Filterresults: notjunk:1;V03:K0:d4ljv/EYbSw=:W04w696d/mx9U0qugvLbPC BhAhjaIeIC1LcKaRAgC7t+PJh0WRbAKLzibTB5UAaUD1ckGRg5EUAM9vW6JzGIGKwqa9lO404 YEh/2FZFei7BC7jWN9RGMfTgD5AZHGgyI155QzzEFg844/xp+Gg89r79eDIc8DTT9RMFwi3vM gHdKZR3oHbYA+7fMGHeKzQrVgfh8xAEg9RTeL7qWD022WnEOayWuzFDu/lGQSdsGDU71Hz7xh o8UmjFjDiZYnvtO8YFx2jMVxk0zfv9p6hl7UMLCzd7IMtlmzVuUDVrtD2DsaCZpCt7a4M3aCK eKvl+SWmhLr+5s9EamzNNyjlYrPLb7s6mHyx6XZJhgdLiwcQyL/Vka+oakHIb6tN4/BGG1NxW t073OkpcvAQWGuz30nvSrNxWT70BtuXDZFuJDNOFDguWrKbcbbq+14pmtjr+gTs7q4P55zO9O 5WEBdgGJYYGFthr3rytPU4Ckoe75JnAsHtUUa1MwadRmd6sPf2iRpdMDy/x68bl095VEdCOKb TQqrdxgzWRS1ImkGj17dprCOfRqgOJfCEUgkpr99HIAdDC+hM1Fhy1T3GKleRmiyIwfw2pSc7 5GzPRsCYh2vGa8WKEpWAf6qF86FU0NdFxE0Sh5rOLxvUpfjS3qG8tcjBcGZuy6+kvJtvttFGa xrCJ7sdrmvpiWR7ShRELhsgKx/bf6IWBasEICeuZdGyEclDtJS4iu0yjcC+92t72+Nsw= Received-SPF: none client-ip=212.227.126.133; 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_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Cc: Peter Maydell , Richard Henderson , Laurent Vivier Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson This fallback syscall was stubbed out. It would only matter for emulating pre-armv6. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-Id: <20220323005839.94327-2-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/arm/cpu_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c index 032e1ffddfbd..a0e43b261c7b 100644 --- a/linux-user/arm/cpu_loop.c +++ b/linux-user/arm/cpu_loop.c @@ -158,7 +158,7 @@ do_kernel_trap(CPUARMState *env) switch (env->regs[15]) { case 0xffff0fa0: /* __kernel_memory_barrier */ - /* ??? No-op. Will need to do better for SMP. */ + smp_mb(); break; case 0xffff0fc0: /* __kernel_cmpxchg */ /* XXX: This only works between threads, not between processes.