From patchwork Wed Feb 6 04:35:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 157552 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5974546jaa; Tue, 5 Feb 2019 20:36:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IZK98CTIDvYUxmzamH9E9m8R6jO6CKnKZSmPXVRGRCAAe0/jNgJ9TupCorUN8s/cRMwwv4P X-Received: by 2002:a81:4cd2:: with SMTP id z201mr7215122ywa.161.1549427764272; Tue, 05 Feb 2019 20:36:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549427764; cv=none; d=google.com; s=arc-20160816; b=CnphfeVf/wRBKeEwm4J6QzOsUoDCkZnbl8LBRfGjE5gZrrb7GouWtqnBNZh2mHsjbL dNFKnxJack/9SG2HrtuHpDHytTB6n+hToP3pvxQRb5xXTN7aktS9/Fuui8RDS94xeVk4 i5/RvYEgZim433xGidWMXw6CGiARt97c1S+X2j6IMeF0EH8DWsa1pUfeb+u4HS2DvHTT ne76ZDP/e8wfoyLjO31i2TSKYx5TLWrKGfgS9GNGyBqYEXCtI6Z64fIHRHFjxOVmUMDE bi3oU8Ftd2Jk0nB/m8TRq1/8bK2U252Q9XkNZofsXf5u8EsSEdxNTNKuVg9x8E2go7Rx Ce0Q== 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:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=lOehrnojtFNyYlkb98dSPwcNQ32zwCOQaPJmEznAG20=; b=VJYB+O3DmLrrkBfurmS/Pd5O/ayf/4uI37/9WVrDfAUSIsXF0M2CIip/iM81B1fCs0 qF3zaqNqz4bZO9kSgTKkt6k7Yg5+gpAtpGWJlt27jm7lJ/Pauv5HUTb1AhFQtuGr5uEv igM6O60TFOQybdD1NjJP0YzeU6vUq5LMAUFs9DPyrVs46RpXcqOv9+yAXhdScauUakyB O9yRYNvjbBV68LY/9OS3CZos5vRCCR5CMngK+egi2sK9gGUAa24ZK5P1Q5gx/GK7AC9T LmVSbRS1RgPeC3KpI+bIDZv5WzU5Ba6v/ZcO9L35eNPfvaLitm3ze7ZO+YRwoYaIT9MY fD6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=cFsorDID; 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 205si3013554ybz.129.2019.02.05.20.36.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Feb 2019 20:36:04 -0800 (PST) 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=cFsorDID; 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 ([127.0.0.1]:44897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grEwN-0001Ti-Qk for patch@linaro.org; Tue, 05 Feb 2019 23:36:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grEw0-0001TS-91 for qemu-devel@nongnu.org; Tue, 05 Feb 2019 23:35:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grEvz-0007UA-F5 for qemu-devel@nongnu.org; Tue, 05 Feb 2019 23:35:40 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:34562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grEvz-0007Jx-81 for qemu-devel@nongnu.org; Tue, 05 Feb 2019 23:35:39 -0500 Received: by mail-wm1-x334.google.com with SMTP id y185so825485wmd.1 for ; Tue, 05 Feb 2019 20:35:27 -0800 (PST) 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; bh=lOehrnojtFNyYlkb98dSPwcNQ32zwCOQaPJmEznAG20=; b=cFsorDIDQy9xCON4z10OQInATs9wQOefsvd9V7lluX1ejPMK6mV2O+4wS9EJRmli/9 zQA/LCxObZ1+C/1XJyIdgvV5M28RaYFPmtrNB/I+Jt9oImGAShffTmHs2FTvmASUfyB/ 25+YlkhlhaQmtW+1iH6pScJftDPGHx6ANx9gYfGHk5A+8jZaHK3RhZjs5UfSOJ05yODx 0xWLm/iRmYOxMsIUpWKFu0hJbXGOheoIxUQN/jAlmTXswpH5pOhaomuNU8vkxdteLILE X7th+xJUwgGGzzfWH42Ioby+uqBhBlSFlIPSi+cTN3WLn6dISV2ju0WyQJI5UvFKU2O+ j5xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lOehrnojtFNyYlkb98dSPwcNQ32zwCOQaPJmEznAG20=; b=gFfRvJD4V/iKcjGvCTS0K9ntwwpfLqlIXR6wbN4Fz71j3KP7mr2S+dBkDlhApji1V3 MlnVPA8K2Eqbil/Kl65KrS2QRuXGNjh4c9jPaiAlzWbA/d9DP+Y3ldztxmy6cqkSeonQ qd7Vg0WyovtiHZ/JPTNhbN2Zk0vjRnJRbvAJqzn5D5hxPl89alWMHbK+GoY2NSHfh/oK J/1xJVzkc8RRmqvYB4vPnuKDua3CU+yLk6NUmQLeBlwmq5r/EdZBFFHNvcYRu2gB5OVn 9fAzMqy/pGoGx/IkwV/Or0OiJQaQEN3vK+v0B1hVjnWZLmTTMyr2/euBhL2ZFL8tuyrz KnmA== X-Gm-Message-State: AHQUAuY/frtqTeUW0GvjzVHPHHe0g3+oFunaozdUyU5OjUqXF6i6aU9Q aC45XJL9tW7P3TlaYZ3Kb4Fbl00SYvZAIQ== X-Received: by 2002:a1c:7306:: with SMTP id d6mr1317243wmb.98.1549427726010; Tue, 05 Feb 2019 20:35:26 -0800 (PST) Received: from cloudburst.twiddle.net (host81-133-38-158.in-addr.btopenworld.com. [81.133.38.158]) by smtp.gmail.com with ESMTPSA id x186sm30255006wmg.41.2019.02.05.20.35.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Feb 2019 20:35:24 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 6 Feb 2019 04:35:15 +0000 Message-Id: <20190206043516.11462-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190206043516.11462-1-richard.henderson@linaro.org> References: <20190206043516.11462-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::334 Subject: [Qemu-devel] [PULL 1/2] tcg: add early clober modifier in atomic16_cmpxchg on aarch64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Catherine Ho Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Catherine Ho Without this patch, gcc might up the Input/Output registers and cause unpredictable error. Fixes: 1ec182c33379 ("target/arm: Convert to HAVE_CMPXCHG128") Signed-off-by: Catherine Ho Message-Id: <1548838794-23757-1-git-send-email-catherine.hecx@gmail.com> Signed-off-by: Richard Henderson --- include/qemu/atomic128.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.2 diff --git a/include/qemu/atomic128.h b/include/qemu/atomic128.h index a6af22ff10..ddd0d55d31 100644 --- a/include/qemu/atomic128.h +++ b/include/qemu/atomic128.h @@ -68,7 +68,7 @@ static inline Int128 atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new) "cbnz %w[tmp], 0b\n" "1:" : [mem] "+m"(*ptr), [tmp] "=&r"(tmp), - [oldl] "=&r"(oldl), [oldh] "=r"(oldh) + [oldl] "=&r"(oldl), [oldh] "=&r"(oldh) : [cmpl] "r"(cmpl), [cmph] "r"(cmph), [newl] "r"(newl), [newh] "r"(newh) : "memory", "cc");