From patchwork Mon Aug 19 21:37:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 171709 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3560900ily; Mon, 19 Aug 2019 15:16:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBUCYEGaRSe/ACHL4RVEM+N/lemQzC7VuN1IBBwmFxwGaGPKhheSPa+hZ9xrJWTO1kBnED X-Received: by 2002:a37:a14e:: with SMTP id k75mr23415886qke.65.1566253017921; Mon, 19 Aug 2019 15:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566253017; cv=none; d=google.com; s=arc-20160816; b=XdDabaKAlCvDcgfUDF94MuOv4z3knmXWKgaCGDwA1F/3Mm4MfSpgvgznpqSPFbFKAV FerS/3LvG0uQlv8eOk009Bme2BUHQkuR5vfMSc+2qlzhPecW8RN69+Gycw9QLON3w3mc /iAbBMvIgoijsdAUZmTrxFd4XcSlxzpDCN9hMxOiiDJBWSdlbPvTjZnxD3vW3Dasz/j6 lVUlf9REV3sVElAUIVsqOAOYb6v1/y1Xai82DY4Zpyju5lz+hgahf7vhcouhzkRgQItL ZFR1jmkcGcO6Zf5nwsyz9WW4P6EG4YiS3A+CGlelzXvSU4VznDq0L9asLgvhA7fqXTh6 q/aw== 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=AfObyYVf+TtUvkYatWrX5oVYyhEhA7Z+ZbkDEmf7ZT8=; b=KqzxFgBx38SOj2aOU8x/LBChXyex5SJ0qjpjWaNfYRTt7gDzxmW2p5I8N4VSviNVs7 CdGGre1MFX3A0iXtExRcYayAGPOWY1xgSJrJCqqkCQjYBwnhZYnSqGRv3Rf8n7gop/8C 94omxkqi1Q7/NO4DYFgiGCo8FLOKM+7Voie/cUBWvJgpU2t+u/QV1ihim7M5oP6GkTlJ oeOYNBNl4M7w8mKYRut1X6+6pKThQL9nXyreOeg//0tbVcBElBrEDOKzl/gStFbiLuwT mUTJyKpJLBrXjbHJTzHl/oxARyGD4okcIzgP02qFiEIGfqAsEilRp+Q6bcg8R1k0UyXg qAUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=RFuZtKWF; 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 i28si9715359qkk.57.2019.08.19.15.16.57 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Aug 2019 15:16:57 -0700 (PDT) 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=RFuZtKWF; 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 ([::1]:59742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzpxQ-0002gP-Ry for patch@linaro.org; Mon, 19 Aug 2019 18:16:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59473) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzpMX-0002Nl-Bc for qemu-devel@nongnu.org; Mon, 19 Aug 2019 17:38:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzpMU-0006VU-G0 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 17:38:49 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:37829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzpMT-0006Ub-QG for qemu-devel@nongnu.org; Mon, 19 Aug 2019 17:38:46 -0400 Received: by mail-pg1-x542.google.com with SMTP id d1so1933526pgp.4 for ; Mon, 19 Aug 2019 14:38:45 -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:in-reply-to:references; bh=AfObyYVf+TtUvkYatWrX5oVYyhEhA7Z+ZbkDEmf7ZT8=; b=RFuZtKWFqnZO0ojoGmbmoV+jl/jaVkvAC9l8GHZG0Sy3J5rXnNMMp8S3ITVP1X95tU GM+1qmUS7we6nFCdoBPGu+vSpi73vT67ty7s7RmJXOE9kNxl14bpsAz1V+tPE/oCOX3w ltPuhuBXHYVCG5EkKZ+Av8L7KahVXtIMSUll+5nRwd8CqtVYalAUuq1kVLL67GiK9iFY G/7xRKkwHdLBK01/ABYGcJ/HJ7IzVlnyJiks/wszSXiP8BLnzehWwNZcHhDlp8hEsynd AWuznA/tpXZ0I14XRkzsfpBDPYMElty8M0gwagZBpFwRnpDR2dLee8r+UBoXOJGBiclm l6bA== 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=AfObyYVf+TtUvkYatWrX5oVYyhEhA7Z+ZbkDEmf7ZT8=; b=N8/ZFVlTr7USlEXB9v0SG3oRghuCH1ZNkUSpS63n8gjqzyfvPtgw+ofXExzsMJxPfl bbLQIqzA+Ostrg8mgMZOYJHphxhrfs1fCmmNwqn9kbXGQHrrk5nGiWLoywGOIa946X3v WjbBEMPICl95yASFX9PiYXokeqzHHhBQa4Yy3I9216xMjbyntDlmQmm8pE4lX7o4nctK WdiKwQxpYXb7c0daEVjKqpynk6mcQT2NHQ66OFOle9HzVqlJYouprsxpFSU36Q7KFc4x IvIY4Ml0j6YqDFt6amRkIkSvL3PxgaW8x6YZs6y6XTaRZDUQMN8Nr4gAFhLHwQFcvtb0 KOJw== X-Gm-Message-State: APjAAAWCT6WJ2BfC2OHncYScdw/LIyfKdlMxVkz/f4EFnOC7IXsAenCF HY35GZ3lK6uPz2bD/3AkA03+i82bDkY= X-Received: by 2002:a62:8745:: with SMTP id i66mr26021455pfe.259.1566250724045; Mon, 19 Aug 2019 14:38:44 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id d2sm13446951pjs.21.2019.08.19.14.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 14:38:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:37:25 -0700 Message-Id: <20190819213755.26175-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190819213755.26175-1-richard.henderson@linaro.org> References: <20190819213755.26175-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::542 Subject: [Qemu-devel] [PATCH v2 38/68] target/arm: Convert Unallocated memory hint 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, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate.c | 8 -------- target/arm/a32-uncond.decode | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/arm/translate.c b/target/arm/translate.c index a30a9bb4e0..9ec6b25c03 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -10216,14 +10216,6 @@ static void disas_arm_insn(DisasContext *s, unsigned int insn) } return; } - if (((insn & 0x0f700000) == 0x04100000) || - ((insn & 0x0f700010) == 0x06100000)) { - if (!arm_dc_feature(s, ARM_FEATURE_V7MP)) { - goto illegal_op; - } - return; /* v7MP: Unallocated memory hint: must NOP */ - } - if ((insn & 0x0e000f00) == 0x0c000100) { if (arm_dc_feature(s, ARM_FEATURE_IWMMXT)) { /* iWMMXt register transfer. */ diff --git a/target/arm/a32-uncond.decode b/target/arm/a32-uncond.decode index aed381cb8e..afa95bf7aa 100644 --- a/target/arm/a32-uncond.decode +++ b/target/arm/a32-uncond.decode @@ -64,3 +64,11 @@ PLI 1111 0100 -101 ---- 1111 ---- ---- ---- # (imm, lit) 7 PLD 1111 0111 -101 ---- 1111 ----- -- 0 ---- # (register) 5te PLDW 1111 0111 -001 ---- 1111 ----- -- 0 ---- # (register) 7mp PLI 1111 0110 -101 ---- 1111 ----- -- 0 ---- # (register) 7 + +# Unallocated memory hints +# +# Since these are v7MP nops, and PLDW is v7MP and implemented as nop, +# (ab)use the PLDW helper. + +PLDW 1111 0100 -001 ---- ---- ---- ---- ---- +PLDW 1111 0110 -001 ---- ---- ---- ---0 ----