From patchwork Fri Jul 26 17:50:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 169886 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp357896ilk; Fri, 26 Jul 2019 10:55:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqywe8pCQWdXDj99x776ncX89dXEF2NDb+XLm0mZcr9ojl5J5N1HtPaDKW0USA1USOn21cur X-Received: by 2002:a50:b6ce:: with SMTP id f14mr80151849ede.236.1564163735544; Fri, 26 Jul 2019 10:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564163735; cv=none; d=google.com; s=arc-20160816; b=yh/gxO0eqxkv5Vh1O+8n3hV9jatUOeab0mR0YOuNnPFN03PeiMWBtgwfeSP7fd9ZBJ PZFVHEqUFLoZnpExT8uDPiI2V3pPRmGgoizlEuMxe7Mit1L8qMMiaV1NrHLqKg/RBuXa Iwgij3/B6VPkLu8tW38ygLX/YjFfrHa4fPTEkXto/kOxztgp8sjoCAOnFNj61rCPNAg2 ZAgFkOKbbM7HwbLT1PMDS3DQh4+E/YiZ7mB+dc6mmONlB5C8OiTTUixYQ775SjkZqEjF MhB07eF4sb0aVB7voLab2w/6+2g31Wq1qnmvpINEn+u3qCA02GTT4lGZYOGfcbbM35CI flHg== 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=hWnZNwWI4tI65PwmLTIEUSuYbSd9btmA82x5Eaqyf6M=; b=AFSkB4GsZrnDeodLhhecuqfBd+ToDOLKAYQDq8LQCCY0ou0KQWQuyhcaUZQR76T2EQ Dm3YAVEzCefQJixdflZcNbQWmj/sFyJnYBjQnRJIq6zEgn4so88ITjiKXFW3/j5zpeIM m7sWzo/m9uoU7TFL+5P03AAVhRB9Bl7F8duzGbWkQGMFpy/f3zkwNMGmbZICPjL23YJ/ JtLSomXDaptNFxnsO52tHRpu/vXGBmnUpvdd80poow5vpmZ2Cm11ejxRltYOe2bEM8P0 rZLYxoXsyMJIBMATG3zR9sLe+uqqWIGJxiY7ovhkK7wVl/9lb1jOwj5zGW8cgBBU7FeW 9ESw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=biC6MyaV; 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 rv6si12190457ejb.320.2019.07.26.10.55.35 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jul 2019 10:55:35 -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=biC6MyaV; 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]:42368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr4RI-0004UD-1X for patch@linaro.org; Fri, 26 Jul 2019 13:55:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58768) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr4NP-000571-VT for qemu-devel@nongnu.org; Fri, 26 Jul 2019 13:51:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hr4NM-0000ge-UY for qemu-devel@nongnu.org; Fri, 26 Jul 2019 13:51:29 -0400 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]:39536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hr4NF-0000Km-OS for qemu-devel@nongnu.org; Fri, 26 Jul 2019 13:51:28 -0400 Received: by mail-pl1-x641.google.com with SMTP id b7so25061209pls.6 for ; Fri, 26 Jul 2019 10:51:20 -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=hWnZNwWI4tI65PwmLTIEUSuYbSd9btmA82x5Eaqyf6M=; b=biC6MyaVGYFUU+cB3fOZf2CH56rijwNd+mbIDwMD/XMxGqHlYgByj4Xxk0GTWLZGkk C8vjr7X8hcWBwDmMYCPejSm1uI3kVaitNj3XhzKz6bPydefsq9J7Ih54rvv3rubBE+QM 86np2g8e+Dy3H1875Gs/DddVboAbbaL7FsPI5gM/2zqQPbXmsvr0ToaYymCxFjkPL1ag I6dNr4ipNEpDbDlVwa79TTrvB8gURN3C0DIbZiBWGcocBwO2Eie+I5Kklnoyg4X9p1pA NeOPc/Ya1lLfInbFUL37f1cZfALcblvODxlEGoIGuyOOjQdLxfa2c2VfelqdLBFp29Nf tofw== 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=hWnZNwWI4tI65PwmLTIEUSuYbSd9btmA82x5Eaqyf6M=; b=KUaOr1/Tb5kERN+F7454wPyTiYeeCx+rQKa5N24pWN6N3W1M1fHpaqtl0qx3CQtK4Y H7UkmTFyieFiWfujmsTxuLETlupysmDQm6I6+KVjKUUA4Ti2uidsRtaUxIdOyrkTlHUp jBhzeiVjaSmJmifvju2hDJ/tFcNy1cj008O3JLMuPMuzh7ciltIYYDUQLD9dJ0+jqr+Q BuGQ8ZF2dxioeXfiHNPsXBCbbUidkL/3sS/deYkg1X8kgNxBmGSMT84YI/sb5KdWtjLt INQj5renwrHSRlVKCJVP1jMDKkItpHA6BdgbU7jZAEWog2PJDyx9VD5E3v/Vh8RIlGm5 rSQw== X-Gm-Message-State: APjAAAVPXHE3U8ML1XUFPXz4Zt8VioJSqoW0ObrJALUwfMBbmQmwQECb c+WkfDTEB/a02BtW/LrBcFtr+pgW1Kc= X-Received: by 2002:a17:902:8207:: with SMTP id x7mr97754983pln.63.1564163478040; Fri, 26 Jul 2019 10:51:18 -0700 (PDT) Received: from localhost.localdomain (97-126-117-207.tukw.qwest.net. [97.126.117.207]) by smtp.gmail.com with ESMTPSA id o24sm104287919pfp.135.2019.07.26.10.51.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 10:51:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 26 Jul 2019 10:50:02 -0700 Message-Id: <20190726175032.6769-38-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190726175032.6769-1-richard.henderson@linaro.org> References: <20190726175032.6769-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::641 Subject: [Qemu-devel] [PATCH 37/67] 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, alex.bennee@linaro.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 diff --git a/target/arm/translate.c b/target/arm/translate.c index 5366741d7b..87cbadc6cb 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -10227,14 +10227,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 ----