From patchwork Sun Nov 17 09:06:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 179573 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1453645ilf; Sun, 17 Nov 2019 01:08:07 -0800 (PST) X-Google-Smtp-Source: APXvYqx+lUIEgN0apSAJ2joodXiioMWasffM/YJNI4TqmFrx+lsYcg4AHioIxAeZ4x4cwQ8ODM74 X-Received: by 2002:a17:906:3606:: with SMTP id q6mr16239019ejb.307.1573981687210; Sun, 17 Nov 2019 01:08:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573981687; cv=none; d=google.com; s=arc-20160816; b=0IBuJ3fgyVSBeMzX253Pl+NWT/SLncj0LlJgSb63xXeA8jHZNNtcL7GR+XJ/i+K5uE t5Ar0QXfiPLze1lIyhOQAw8vkxepw9MM4qix8aZkK4ECIzx3smS5a/flOE582xZihmBQ rCHGIDOVnuFs7LTqfXjQaCLha0cQiSdyDmDnMqpHoB142GRvW7eesV6f+g7FIG2+HEEU jhi6pN7T9jnC2nxs/MPdcw1aQY1nLwtMpEnwS4X3rAjoj/oYfw2s5z/B+Tofu5+F7BqR exn6/PSRMPiWk2tfayE0RSjxuUut6AAVXk472kIO5iI6dG9WaybClrNQ91EfGRY6u6f5 8x7A== 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=X1Vrnl0U1WStHfXGelt9HfqdmyYRaXH+N+hAEhNxwRQ=; b=sOmcCszfdtI7QPr18ipXjK/ib/PdN9SD3HTrqWCbBcAlvO99RnnoBizNVa6gDslhgj Q9syuxRT/HaPzZpP47TBpiV8Mh1WwOM4grPj4fZSlT3jN82zVa1skZafEGTl1ZCdIAKX eagmKJR46xdMZ2AhkW8bVJXZE3QhVjkKOrzREcuX5CutI9OjEuPxWQLjdkwuD+daEto5 R+TKx8Snj1VsLC236UkXYGviZylceswlP7uZRXdsBF3QS5Hkrlt6hsNXK6yM9qngVbHc A6XGZjK8Sj1Yxs4LoYERakvYNKWYg0bBGn5+q98i5wsfRcQW3hQAS0Wmq7ewr7/E0jS1 368g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CbaOldtw; 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 f12si9153368eje.253.2019.11.17.01.08.07 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Nov 2019 01:08:07 -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=CbaOldtw; 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]:52820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWGXO-0006LB-5A for patch@linaro.org; Sun, 17 Nov 2019 04:08:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55781) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWGW1-0004dD-LH for qemu-devel@nongnu.org; Sun, 17 Nov 2019 04:06:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWGW0-0004Vs-KS for qemu-devel@nongnu.org; Sun, 17 Nov 2019 04:06:41 -0500 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:45457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWGW0-0004U8-ER for qemu-devel@nongnu.org; Sun, 17 Nov 2019 04:06:40 -0500 Received: by mail-wr1-x444.google.com with SMTP id z10so15893573wrs.12 for ; Sun, 17 Nov 2019 01:06:40 -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=X1Vrnl0U1WStHfXGelt9HfqdmyYRaXH+N+hAEhNxwRQ=; b=CbaOldtwUMerikJ/WPu12Q1PZINNTUNiunVTnlezW3yZ6mO5mvZ+EMe8BIOL4IUTPL IGJVXSmJIXg8JegYPS6nvQki6e8ptwCcLJMxtBEc3ltczb0/Q3m0baj0hu6Jlmy53anc 6GYMZbTPt4znPyykSVa8f/76PYqelsAKl4boBcr4vywU0jyh395O87Ex1GtUFUaaPfms UDUXG9s/tJil/hrNVvkpv7BK2WFTbZl59xs5+kAQNjPS4XNK5thz3siZUleqCdfD67tB ePR+/jlrULCZeOwxghNGSu4IuMheu+vhb082vD40XpgLiIpC65JhhPhLYbtab5mbXhSX Plpw== 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=X1Vrnl0U1WStHfXGelt9HfqdmyYRaXH+N+hAEhNxwRQ=; b=LBrg8yw5Zba6q8KcwqsT9iAgNKpAr7sGt//vXLfZggCU/UYMeVr4cwCiuLkrsrl20B kBpVBuLfnJ/7AjPf7fLvZiR5yDg9eg6loIbsLmU0rsZ4SaJvH4xwKoDRWAmpR4WnA9aA WXcmr4wzJDUKD8f1OImViNFTU2k88RkA2VcbW+C2cG8IzyVmvmS6w1qLMtneJeWMP3uT hnEVAhABq2ay3wt3eNYKoqhrCe2/94d+NEcAAh5I6y9dV5CO21v7kPpa2QpMQd39Frgl HCwkdR9GqliLUJPIqY+AVl6nWv8XLS7d/FdBQfzIPiuy18F7GPXVP8KCqkxFiwGJqs9w n9Ew== X-Gm-Message-State: APjAAAW5JWzwG9U2M5xDSblH38wqdFeflAuah8ayL6NQqjU2/BKprzKN 7PYZQgfMlTQq966NiWYtc+7Q5SB0PwpGug== X-Received: by 2002:adf:d091:: with SMTP id y17mr25498844wrh.182.1573981599222; Sun, 17 Nov 2019 01:06:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 01:06:38 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 2/2] target/arm: Relax r13 restriction for ldrex/strex for v8.0 Date: Sun, 17 Nov 2019 10:06:21 +0100 Message-Id: <20191117090621.32425-3-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::444 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" Armv8-A removes UNPREDICTABLE for R13 for these cases. Signed-off-by: Richard Henderson --- target/arm/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/target/arm/translate.c b/target/arm/translate.c index b285b23858..3db8103966 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -8931,11 +8931,11 @@ static bool op_strex(DisasContext *s, arg_STREX *a, MemOp mop, bool rel) /* We UNDEF for these UNPREDICTABLE cases. */ if (a->rd == 15 || a->rn == 15 || a->rt == 15 || a->rd == a->rn || a->rd == a->rt - || (s->thumb && (a->rd == 13 || a->rt == 13)) + || (!ENABLE_ARCH_8 && s->thumb && (a->rd == 13 || a->rt == 13)) || (mop == MO_64 && (a->rt2 == 15 || a->rd == a->rt2 - || (s->thumb && a->rt2 == 13)))) { + || (!ENABLE_ARCH_8 && s->thumb && a->rt2 == 13)))) { unallocated_encoding(s); return true; } @@ -9087,10 +9087,10 @@ static bool op_ldrex(DisasContext *s, arg_LDREX *a, MemOp mop, bool acq) /* We UNDEF for these UNPREDICTABLE cases. */ if (a->rn == 15 || a->rt == 15 - || (s->thumb && a->rt == 13) + || (!ENABLE_ARCH_8 && s->thumb && a->rt == 13) || (mop == MO_64 && (a->rt2 == 15 || a->rt == a->rt2 - || (s->thumb && a->rt2 == 13)))) { + || (!ENABLE_ARCH_8 && s->thumb && a->rt2 == 13)))) { unallocated_encoding(s); return true; }