From nobody Fri Nov 7 18:46:52 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1548848963306105.48706214815763; Wed, 30 Jan 2019 03:49:23 -0800 (PST) Received: from localhost ([127.0.0.1]:36567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gooMY-000390-Pl for importer@patchew.org; Wed, 30 Jan 2019 06:49:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gooLR-0002i8-SW for qemu-devel@nongnu.org; Wed, 30 Jan 2019 06:47:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gooLQ-00032y-WE for qemu-devel@nongnu.org; Wed, 30 Jan 2019 06:47:53 -0500 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:42859) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gooLQ-0002xa-Mk for qemu-devel@nongnu.org; Wed, 30 Jan 2019 06:47:52 -0500 Received: by mail-pg1-x544.google.com with SMTP id d72so10224756pga.9 for ; Wed, 30 Jan 2019 03:47:43 -0800 (PST) Received: from host.localdomain (96.45.178.72.16clouds.com. [96.45.178.72]) by smtp.gmail.com with ESMTPSA id d69sm2289817pfg.168.2019.01.30.03.47.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Jan 2019 03:47:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=6PM+tJyMqHX0YZ324uZQGHVHPs0FGyw1HqyTO3MwVMs=; b=MAddxRU2NgxPEuhVXVMwIScfWqQmqv4HJRAe6rQWrnzTARdlIRjoBHn7z7fHaKgz8G juJOAAro5/qcKH6BINICGPitIKl7JJ1FFYuvqhH8LwR9sNLR/yGJdhdnIApbPcRrn7/M RzL1Yot3kX9t8Q2qbBK8Njg4Ru932MvL/0baE5+f686hCtf+2TfwkDDK4FEKZcAyXqwv nWoVSi8+nInUvsGkeULin9gDaouNuN88yQil2xmItI/J+xHI288MbF7V8BqS/518c+CB mAQBCgObQUs2n1HUG9vErvEfk5GkQX6lB3o8nBPQSxXiH0YeKW3tU1nfE13X67iRSNVQ yw8w== 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; bh=6PM+tJyMqHX0YZ324uZQGHVHPs0FGyw1HqyTO3MwVMs=; b=iMhXV6AeFYY6HF8f44pkNw87lOF0cgpSkOnXsev22Y2n1JlZTUvDu5xtxmfN3cPuBf DRE0G3ja0dID4RftzI0omnRYtNcDg3cGfISYu1Q1FBKAJwXoVd4gBbZ/TKHvIhTUYjgf iFLRb3a4CSZoJ/ioauXxW5XTMbq2MnIHNn1BzQ+73gI4nRh84qg3jGcGo/m4OZvz3+r+ iJEKe63AJspU+7WSvYriVk08y+BoaDTuhaqkCfC5uDeBZNSyfXFrSSVCWtC+L5gc/PsV ON/vEgQP1Qxsw9Mvvr7NYDdSrTsto66gMh8wKGuf5IGlUEuVIOXq6zCrB8148Wzc0QOP CKcw== X-Gm-Message-State: AJcUukdzk4XoCo2WmvNh4qL25wt2rVAzhoj+WwoJK9Bhzk5agwLMGJbx +QxhkToukB1XV+pv0BwEbzo= X-Google-Smtp-Source: ALg8bN49+xPVIx78uKgYM3qfkUC2lUedW7cW0KYKekjIFmD0MWAmriK497cYvrspaWhZcIqdI5SUJA== X-Received: by 2002:a63:b649:: with SMTP id v9mr27400280pgt.436.1548848862167; Wed, 30 Jan 2019 03:47:42 -0800 (PST) From: Catherine Ho To: Richard Henderson , "Emilio G. Cota" Date: Wed, 30 Jan 2019 06:43:26 -0500 Message-Id: <1548848606-23864-1-git-send-email-catherine.hecx@gmail.com> X-Mailer: git-send-email 1.7.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 Subject: [Qemu-devel] [PATCH RESEND] 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: qemu-devel@nongnu.org, Catherine Ho Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Without this patch, gcc might mess up the Input/Output registers and cause unpredictable error. Fixes: 1ec182c33379 ("target/arm: Convert to HAVE_CMPXCHG128") Signed-off-by: Catherine Ho --- Resend: sent previous patch before subscribing maillist include/qemu/atomic128.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] "=3D&r"(tmp), - [oldl] "=3D&r"(oldl), [oldh] "=3Dr"(oldh) + [oldl] "=3D&r"(oldl), [oldh] "=3D&r"(oldh) : [cmpl] "r"(cmpl), [cmph] "r"(cmph), [newl] "r"(newl), [newh] "r"(newh) : "memory", "cc"); --=20 2.17.1