From patchwork Sun Nov 17 09:06:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 179571 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1452625ilf; Sun, 17 Nov 2019 01:06:53 -0800 (PST) X-Google-Smtp-Source: APXvYqxWVPdSO7iY+7hXoQFGUS9W/VrEgMAti6FYnpL9lUxR+EnSx1wWRCtMajyYI5XqmvWrG9yi X-Received: by 2002:a17:906:9417:: with SMTP id q23mr16909684ejx.37.1573981613047; Sun, 17 Nov 2019 01:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573981613; cv=none; d=google.com; s=arc-20160816; b=vU96yTftflFz38gSR1K2SLO8bLMSUnOv68vu+MNZbxnlPgZmDm07ITgGym1UEd9hfW 9hz2oQnhOmpnf9wniG1DzQ+q5LkC3mb+59pDDL7Zl4hJ9s7gGkAPN4Nr3i+W4jDqndY0 baUT88tV032gh+w94ne0y0tf3i5dVL7v+N6t9btyMk+CCCLcvxyJx/dUjA7gdTj+xs17 7GDOAwv296W66v1yIgWi4bR9J1fYzlxqyRhVrf6S3wWsPE7aDCOpx2uZ893QsNIpGM44 tNWm+MjuoZgaZPjgPeMqXTGXot3xuAE7+pffusTDAx6cyZ1RdvflYqtwNvny+7ntjtLo 2olQ== 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:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=GBHzU6Z//QizyB6bDO7VHsofmNwhMhG9rJWVnZKGzow=; b=EU0jBG27XIqZ49u1ol2JprjjiQ6fDcvL6ltNAedEzQLYH/EFBsJUvIZjzwe/28BnY/ xJOtFQSVjk4NyOoLmrQkDee+tt0xvUWyb30XNsd9DawEEjjw5NU4Lzcf8Q7jltv2FaDV BpXZZ4rW7IqWravTbF5iJ4JzS6DV9IP2ml0DDHrjj7u65TYjQuBwbs8rUYzBqpYdv4BX UWW3tbAFkQqJq6WiV/cod0muaNLEF5QeKWgGhaUYKFGC79eMxZsc28XzR3+aUDlMugAm 6GceRPuVikzQlLxvg2J6ls77q+ykRGVvLMA3DWSh/MmdrmRlc1ysMbHQ67eURa91OVim qvqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gvrhEGsU; 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=pass (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 qw23si1051924ejb.1.2019.11.17.01.06.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Nov 2019 01:06:53 -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=pass header.i=@linaro.org header.s=google header.b=gvrhEGsU; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWGWB-0004eG-VD for patch@linaro.org; Sun, 17 Nov 2019 04:06:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55768) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWGW0-0004b7-4i for qemu-devel@nongnu.org; Sun, 17 Nov 2019 04:06:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWGVz-0004Tk-7B for qemu-devel@nongnu.org; Sun, 17 Nov 2019 04:06:40 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:43977) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWGVz-0004TI-1J for qemu-devel@nongnu.org; Sun, 17 Nov 2019 04:06:39 -0500 Received: by mail-wr1-x441.google.com with SMTP id n1so15884877wra.10 for ; Sun, 17 Nov 2019 01:06:38 -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=GBHzU6Z//QizyB6bDO7VHsofmNwhMhG9rJWVnZKGzow=; b=gvrhEGsUSn/iXKEwstQwEO77Uz2vHzCvyubwpzbVdV/gzzTZ75SemEFyAy5zK3Kv3p stbImImvfmCp5dRWiY8N8VRXUxrS6IDD5DevaaIWCnIjqWJjpY2cwPdkR9oTR/DGQP9s P/gU4sa2ChyWcx0c1JsV1KPb+ghyxQQvSEhtT2Fs8E/iyf/jQGDbSQ2mFrPISlSCpsXb /bUXHcx6ZCHGdqaVmr63efi2b/zaetQRax51our9CH8irlm8GIrh5zNrM9lGKoOlu9Ud dwR/2A2Q7Y3QCGya7h28Q5MXVN5pTaYCcXbfKCa1OhPUSjCnA8llVGgK4qCjSlJepe5B IshA== 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=GBHzU6Z//QizyB6bDO7VHsofmNwhMhG9rJWVnZKGzow=; b=QIsLVa0EQjzbbfPvXhw8QouUGdu45gYvZFo7s9yDWhidmrvXEDkfl1MI0yGdu/40RP /sor8n/UcMZdDchuLqoIIEtgQC/Y5oDlkWoV9Hz0/X12tgo5DEwvd7HPCzyztnuFv03r dCwhNNEtZ0JFeb12DB2TFyCDywynXwKtskml8aj1ax5mb8K7F7bwu8AsUnKjn7u9zKdD xCcTCmON2HrHORBoD9Fgl82oAtC3Va8oaMhMWpxx196JaWBq/3NNDsYBWZ69y3gIqcFP 2d+dmMMoPpxxgb3g4r+t8XeSor5mzZudXmTnZRPUEVmLLpw/EWWNGqzTNwld50qRCfCe cUJQ== X-Gm-Message-State: APjAAAVONy8G8wsEiPKmXekd9EYmpbg7ch7jtUWYZ+T2/286/3gn4E92 f/B6PhNbt7li83u2zOUa4QKonq3Ns/MI3g== X-Received: by 2002:adf:efcb:: with SMTP id i11mr3476142wrp.229.1573981597751; Sun, 17 Nov 2019 01:06:37 -0800 (PST) Received: from localhost.localdomain (180.red-80-27-55.dynamicip.rima-tde.net. [80.27.55.180]) by smtp.gmail.com with ESMTPSA id 91sm19773679wrm.42.2019.11.17.01.06.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 01:06:37 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 1/2] target/arm: Do not reject rt == rt2 for strexd Date: Sun, 17 Nov 2019 10:06:20 +0100 Message-Id: <20191117090621.32425-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191117090621.32425-1-richard.henderson@linaro.org> References: <20191117090621.32425-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::441 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" There was too much cut and paste between ldrexd and strexd, as ldrexd does prohibit two output registers the same. Fixes: af288228995 Reported-by: Michael Goffioul Signed-off-by: Richard Henderson --- target/arm/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Peter Maydell diff --git a/target/arm/translate.c b/target/arm/translate.c index 2ea9da7637..b285b23858 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -8934,7 +8934,7 @@ static bool op_strex(DisasContext *s, arg_STREX *a, MemOp mop, bool rel) || (s->thumb && (a->rd == 13 || a->rt == 13)) || (mop == MO_64 && (a->rt2 == 15 - || a->rd == a->rt2 || a->rt == a->rt2 + || a->rd == a->rt2 || (s->thumb && a->rt2 == 13)))) { unallocated_encoding(s); return true;