From patchwork Wed Mar 23 00:58:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 553736 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1248:0:0:0:0 with SMTP id z8csp2932578mag; Tue, 22 Mar 2022 17:59:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMiVShX04vN9QWKPC+h0pcvRLZCWO5kTW/REflqWIZq1jPIGTn0++tyIXGU1CsevES2etl X-Received: by 2002:ac8:7d06:0:b0:2e1:d1c4:868 with SMTP id g6-20020ac87d06000000b002e1d1c40868mr22121334qtb.143.1647997197141; Tue, 22 Mar 2022 17:59:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647997197; cv=none; d=google.com; s=arc-20160816; b=PhOROHL0znvvNgEyARUChjgLbpdiaohwR22lfwuSV/GWSaRF7sZx46E/vx/DQpy35R P5ePJQoh9pqrhr0rtwixNoGGkmOMCIkkzQ9cwyE4OqyCMEaKRE+z0IHWe0+SBun2MUBB 1p5WuNJpcoySVw6V31rmWLpbt8kB+WYE/oPq25cNsDdexKPAe7THJ3rDfbB0gjvBZnOC Arrd6oK/Wv6tGPSsXZqAKn1NqnHkCpN5wIDCsCk+ogUJ/qMdd5ghRC1qnoKbQB/Ga6qt 4Txloh4lfigRpNObRUlLgzYQZfDxCJnsByHB7wuhRWnMa9GHTw0erRDTOfeGTQxJK6zG majA== 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 :dkim-signature; bh=f+5z+wqi2rxnK6aMMyUHgsuTb072LmLznpqr7TVA2Ek=; b=T2RQaHoQBOs6pYzy4X8bn39cVM4RPgQyQEBtoxkkVdcUmDLz/+8BSA0vcvdgUxudTo OqPHqsrwhAoXBpAVkn7gxohSnivVluF8ArZvpyYvRF8TzfSy2Dy5sVLqdPLYajceusCC 7ys3tM0/p8RjYveydBdY7LRSBjoqbngu/Pty/jAJBTddpS6QpYQhd37eQ/NsWCOu++1a b6oCH0lQuZUHI6WFQYG6NwLQNMcRHglzUXGKuwwxSMnjGYsqww/RQXmoRU0N6C5d8VL9 oz4mfLFEABFYjnCouygbIyCVoxfZPjnEkGjrNmGynmXJDNyQBsyAZStm0p7a8FMoKYNO 1OJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rY01lwXI; 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=fail (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 m16-20020a05620a291000b0067ecf414f7asi103572qkp.156.2022.03.22.17.59.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Mar 2022 17:59:57 -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=fail header.i=@linaro.org header.s=google header.b=rY01lwXI; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWpLw-0007s9-OQ for patch@linaro.org; Tue, 22 Mar 2022 20:59:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWpKo-0007qH-8b for qemu-devel@nongnu.org; Tue, 22 Mar 2022 20:58:46 -0400 Received: from [2607:f8b0:4864:20::62a] (port=36438 helo=mail-pl1-x62a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWpKm-0001UK-In for qemu-devel@nongnu.org; Tue, 22 Mar 2022 20:58:45 -0400 Received: by mail-pl1-x62a.google.com with SMTP id q5so150050plg.3 for ; Tue, 22 Mar 2022 17:58:44 -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=f+5z+wqi2rxnK6aMMyUHgsuTb072LmLznpqr7TVA2Ek=; b=rY01lwXIo8Zhx5tAVaR3PTWgGZvCxW1bfFi6rbDvFCsm6ML7tmAelPntDZuOXIvzco cagmpgmaG4oS9V9eGNLbMIqGZpo/6iz2O4WKkUZoHQRtTWr/qqG89lA79YvUzLLlzw2S YGb6kShyr0XINoi/ycWYnQiKPny9Z0kgbOJ1UuGPCHp7Qw8t/xuSvV+I6JPwxv6E+iPF ZxOQUEPjgE/Jv/60stgu8bzEw59ShVKA96Lrz/ML3vJmz8HrJx1pP5mFqWUpDRWQG3uk aXVQhKIrX5kImo9dbZDTJxd89gQqBcqdfYNDlWYG82uI7GqWNZUPbwud0uO11AIrVhBi h7Vw== 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=f+5z+wqi2rxnK6aMMyUHgsuTb072LmLznpqr7TVA2Ek=; b=YtPoNCfs/g1UJVGOYkDN2Uhug2BD57wgbHlbhVYE9t7lqCU+OsgNpOpRbPoK8qubXE 51QbhqBFovAL3HUXJf85vNYnwIg0RDNAJkk+wGvvvK/4EgMqCBeItcpXF0BW2DrilkG4 UuHMzMPpnvfxDOqn/qBPDWBBLny5wzuAPYmgngOXcYNtQLbrBB531Smi9eF7voUK8VHs QIppc0pkYUoIU0A4vvHAsOYsZv/V0j4NtRmFiGW4qmSLeM2bcmvby36SfruWsauQEz6i DHTxsAEe7som37DY9aRYxSRifZrMSWhsNWsrwfO8H37oGYoGMOVhHPhHB5iUx6m7R6op R7dg== X-Gm-Message-State: AOAM530w+SHmTYLVh5mSFxnsBidNIRBgr4D5NwAh0Vy7wl/i+aC37hay UHbu1VEN0oKOjzkSHrl5JWmhyAvAQgsGdg== X-Received: by 2002:a17:902:f54c:b0:154:8227:a387 with SMTP id h12-20020a170902f54c00b001548227a387mr6542544plf.42.1647997123188; Tue, 22 Mar 2022 17:58:43 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id g70-20020a636b49000000b003823dd39d41sm11569167pgc.64.2022.03.22.17.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Mar 2022 17:58:42 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 1/3] linux-user/arm: Implement __kernel_memory_barrier Date: Tue, 22 Mar 2022 17:58:37 -0700 Message-Id: <20220323005839.94327-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220323005839.94327-1-richard.henderson@linaro.org> References: <20220323005839.94327-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::62a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 , laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This fallback syscall was stubbed out. It would only matter for emulating pre-armv6. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- 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 032e1ffddf..a0e43b261c 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.