From patchwork Wed Aug 28 19:04:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 172456 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1218146ily; Wed, 28 Aug 2019 12:51:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiCJe8xl+eI46UsUNR/wKLKTtpnqOnNsh7RtPQV2uB2Ts2+UixiutU2b0/EAUoDE77Cmda X-Received: by 2002:aa7:ca59:: with SMTP id j25mr5843459edt.197.1567021878006; Wed, 28 Aug 2019 12:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567021878; cv=none; d=google.com; s=arc-20160816; b=rFMiDlEoFqbZigxdHPRpMIRxQZYZlWj7r0phzoxoyRCcBiiXooQOMgpRZhM4lDVbYF W5kxucKsyVTEw/KTuKLsLuLeueoYn6xo8bvRVUGRdiP8rMFaPi8Zu+MSJ/8bID97TaoK DGILWo6yO2G5qZxFvUJqnL3UxHG8lrmp2HeIyjgsoxkS7xTOI+2Aiht6Y7opCsRZYVWh 9SFZ0b5JcL7eFqsCWlmX3ZUhGLPUf9ZC5cpnW/FGHtMYIPEZJxtK/+tYd/AVAyJ9LJys h27jLk58Fr3/Yc5SUivhudkx6QSBeLqSrObU4e7gbqnNkPWCbweAGkzcvjNPAyPeVTcy 7PPw== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=89SQlaAeVhVp09ygtNMAn6vIdVWhYBgQFHPazRmvu08=; b=pDbajVrRvhlwXEra929f7sMKaVkVKKDLl+MHl8tiyCvrqhUZa4jdH+tOsYLaoI+lfX HYkNs9mnBUi29Y/ZvA+RC3k00hQGLm5DQ8ORVYwEolMvaIIgAwpAzUAYrYoUrWjvKiJS sQ16a3sPISWMTJEVMkd6D9BvIhn9sd1cul33/llzGeN6efVluw3P1rb0Jgr3LqMaT77h urPJAOGGBUyoTJBxn4XUB3F+VgMe5HYPKV2ZzGfhBWC/frq2LhsKsR1VlJuTTkb7O/ae y+fXyumyiR5eRgZOfP9jmGv0EevE2K/oqtfZRnmxwzeF8zr+Mp/kp2wXOYFMHmNlA/fC rEpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ztx41+Nt; 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 f27si1963292edf.102.2019.08.28.12.51.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Aug 2019 12:51:17 -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=Ztx41+Nt; 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]:41664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i33yO-00051z-OO for patch@linaro.org; Wed, 28 Aug 2019 15:51:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38355) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i33GX-0003py-FS for qemu-devel@nongnu.org; Wed, 28 Aug 2019 15:05:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i33GT-0000Pd-B1 for qemu-devel@nongnu.org; Wed, 28 Aug 2019 15:05:56 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:34812) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i33GS-0000Ne-UO for qemu-devel@nongnu.org; Wed, 28 Aug 2019 15:05:53 -0400 Received: by mail-pf1-x441.google.com with SMTP id b24so408731pfp.1 for ; Wed, 28 Aug 2019 12:05:51 -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 :mime-version:content-transfer-encoding; bh=89SQlaAeVhVp09ygtNMAn6vIdVWhYBgQFHPazRmvu08=; b=Ztx41+NtgB/AA9TuDP3LN7RA8e2+gh26+eXpSClG7BNawIO9uw+FhuCbhLmC75IYgZ REr5YxsDg3NfI4lsVsIyCUmnqX8EIdze91VE54I4FzmPr77o1YPoXFF8o3oAystB546/ YhRzY2/XpJerWj8/r4fcIblHoyguh5Fy7azkhr4MBWvuLZOejj3SlavHvu794mQMehJE ZzigOoMYrntfc7W8W/VWDpmFcbWX9X3tSbX3riSL+dKKhp4IPyojPrd4KdkEoOHMvXXT gO0P/xPJtdlmYdYSg19chVjRe8D6eHkZjzCR9UVQiQDh7q7RsuyBggwKMMXtf3oarQqR GqFg== 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:mime-version:content-transfer-encoding; bh=89SQlaAeVhVp09ygtNMAn6vIdVWhYBgQFHPazRmvu08=; b=ARByk15DsFjj+EzJOlGE4nJ7Olu7GdU7AKiSJGJzn9gvFWlGaY+Ai2jMNosIzU5OA9 jmIPh/Fb9O1wc8zAujXwlrFYVYBh1BLDO4/28ScRYN7lMvmYPyQTacvS51L+IYI7UHN4 wWafn/ayf6Qz4CxVxdVnp/xPOhAHoRn3emkCnP4Mng7RUt6Oo0FhpXjxgjzpJFbH85L4 I+4YNny5oL8hG0NO/1EVv23WP+Cp42H+8g9w/JNjuZvlmdIMxqk/1ZZd/mWgrH8d9dgJ ZL1PPdnrx0nNHqbGmsCr5s+WtJNKeIfa44CLwTLpfrVoFB13qE3kZkI9BSz016TC1s32 2hKQ== X-Gm-Message-State: APjAAAWJ1rlNvlvOZEgn01mSMAzaWhH7w1G1bNaVr1p38UbOka5vNOt9 qvNsZLC9aM/X1ZZPpRf8wpP+96b3i64= X-Received: by 2002:a62:1808:: with SMTP id 8mr6522592pfy.177.1567019149913; Wed, 28 Aug 2019 12:05:49 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id f27sm2967944pgm.60.2019.08.28.12.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2019 12:05:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 28 Aug 2019 12:04:26 -0700 Message-Id: <20190828190456.30315-40-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828190456.30315-1-richard.henderson@linaro.org> References: <20190828190456.30315-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::441 Subject: [Qemu-devel] [PATCH v3 39/69] 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" Reviewed-by: Philippe Mathieu-Daudé 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 c55bd1e563..07547f7b6c 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -10309,14 +10309,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 ddc5edfa5e..60ccfc598d 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 ----