From patchwork Tue Aug 15 14:57:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 110173 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp5776091qge; Tue, 15 Aug 2017 07:59:20 -0700 (PDT) X-Received: by 10.237.60.247 with SMTP id e52mr38685942qtf.106.1502809160219; Tue, 15 Aug 2017 07:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502809160; cv=none; d=google.com; s=arc-20160816; b=baEA/OSaZf9HylBNcyrQh05QbvZoIQBktUCit8fARGLT6HAZE4x5yRZXsEHbnZCsRj jBSPCCyflyqTR0TWinnPwcpeEKOwLrQTo9PFGIvgcfUFRVOl8bT1jfKAGeR175t0NrEZ L0gsutX2CnAYS0llVpkMbFa5bgS76pFTYlqPLqzkqTcHn27kyE72jn0xRNoS5+M+5KIP qE7cWIVqDYNPR2lObOFksqWjIGAMrdIDkU+szIH7cloSt92j51gvoS/Qa+p6Qnh7TPS+ i6rIGOA5gZ5yI/lPZT8Qc2Gwihce4x4TpJ1f4clSV8jHUIXY0uqpnJv3wsQoTDlJReEX kA0w== 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:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=uQMMd/hoLqANeSveytGk06TqVWXNUqSE493hQ5YWypQ=; b=J1KipwOqhLGU7hpsyklvPIvSlcaA0DeTlBErhlXrF41s8iKRDToX1GYNQ9gOV6Foh7 lrduks6Rr6bPhALxKn4wJAHZOiUe9+/shfri5ua6nm39TGqdOBEzSP5je3CEsqIOc0DU 7hartTp+i26CPTQHKqiEw56U/tBTiI2suS6ceEj7NE1LyAyH7/RT7s8MapFYUvCW3IB1 tSSEXsTULU++jvZXpzPM7z+pC7OxjfbI8nbVArSWXXt0PW5FBOOHx50AC545fz1zlIef mbG4TAJuR2CinA45PLdHED9lQD4Rw9V4VgjiXScW3ZH5XYX3AbEBxsuYHAyXAv7dayfe fETA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QTZLZDIu; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id v45si8872206qtv.60.2017.08.15.07.59.19 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 15 Aug 2017 07:59:20 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QTZLZDIu; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:39220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhdJN-0006Xy-QK for patch@linaro.org; Tue, 15 Aug 2017 10:59:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhdHX-0005Ir-Th for qemu-devel@nongnu.org; Tue, 15 Aug 2017 10:57:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhdHT-0004I2-Ul for qemu-devel@nongnu.org; Tue, 15 Aug 2017 10:57:23 -0400 Received: from mail-pg0-x233.google.com ([2607:f8b0:400e:c05::233]:34696) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dhdHT-0004H3-Nc for qemu-devel@nongnu.org; Tue, 15 Aug 2017 10:57:19 -0400 Received: by mail-pg0-x233.google.com with SMTP id u185so7108457pgb.1 for ; Tue, 15 Aug 2017 07:57:18 -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; bh=uQMMd/hoLqANeSveytGk06TqVWXNUqSE493hQ5YWypQ=; b=QTZLZDIu2piyIoEY7PPdI2RY1JjEGuJl3wu87uU/pBOP9VxBBtO38QyOiEmiKI1YWF UhyOgQ1En8EjPUB8ItIG/3hDckHj72ZkYX6UG2dOiG6xfGbe2wwNA+2oJ5k2XqTAQx0q tjEAR/+iSd8owloOogJfVsV//w+J5/51vwrhc= 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=uQMMd/hoLqANeSveytGk06TqVWXNUqSE493hQ5YWypQ=; b=RXPQSXNAniKBYjXetCj/cjBs7VmdZIa5iJERYPFDfJu6Wx1K/ItuHk3mRK0P6ONZFR bXN+pjoX7PTCD2zlZbKTS9VlRW5p3QPr8A/foPEPT/w2O/JsoTlYiAFm9OkKgX48Y3R1 CK5eSuVDrKbjeTBsPYDIJLtUSGmI+7Bdwd0o5Z9mWoUUG3G8GLqYlqixqd/wf963z/GM /xgHz3FIUDCLeRsUZpFIS9bRauokYXFF0KnWWrgx7nvm5BFi+vtCmI+wpvECw52K6cpO rWFmr7s24haT9tmKLUB685LreBJjvq0YURrJdDYI5p/SHAV3rNeOJsOEma62c5nlYj7Q YiNg== X-Gm-Message-State: AHYfb5hHpt67rN68xg1TMGFfbCsthGRYrQ+KIBbIliK1bGVyESVxSdh1 +k0xH0lqDEdhY0idqd+HdA== X-Received: by 10.84.142.1 with SMTP id 1mr31967740plw.392.1502809037041; Tue, 15 Aug 2017 07:57:17 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-108-236.tukw.qwest.net. [97.126.108.236]) by smtp.gmail.com with ESMTPSA id n11sm20626318pfg.15.2017.08.15.07.57.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Aug 2017 07:57:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 15 Aug 2017 07:57:11 -0700 Message-Id: <20170815145714.17635-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::233 Subject: [Qemu-devel] [PATCH v2 for-2.10 0/3] Fixup logic for exclusive pair 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: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, alistair.francis@xilinx.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" In reviewing my previous patch, Peter pointed out that it is CONSTRAINED UNPREDICTABLE what happens when you mix the number of registers in a LDX[PR] + STX[RP] pair. So most of the bug that I thought that I was fixing isn't a bug at all. That said, the patch does still fix a real bug wrt single-copy semantics, so patch 2 is largely unchanged; the commit message is re-worded. I also un-squashed Alistair's original patches and dropped the tcg/tcg-op.c change, to be revisited for 2.11. r~ Alistair Francis (2): target/arm: Correct exclusive store cmpxchg memop mask target/arm: Require alignment for load exclusive Richard Henderson (1): target/arm: Correct load exclusive pair atomicity target/arm/translate-a64.c | 63 ++++++++++++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 24 deletions(-) -- 2.13.4