From patchwork Fri Jul 26 17:50:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 169927 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp370130ilk; Fri, 26 Jul 2019 11:06:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaZFI7cJaYrmHkaaPWusxNXoKpPY1YO7VakdQTMid7LRv1ugz7NEX7zpPtCFzD2Yo8P6Gg X-Received: by 2002:a0c:b786:: with SMTP id l6mr69360274qve.148.1564164378666; Fri, 26 Jul 2019 11:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564164378; cv=none; d=google.com; s=arc-20160816; b=sEftmkuWdX9QsX02x42hWbI3da94J03V1PG4lYvG29ueqhogprFm3+j9kzxxtm5Ns1 V0of17smcQ/Db1vrLb3bAsFMYZCZxB6v/Mmalpp/5SNi1hByNCcVTaMR2AttI5YuyjGq 2Tja8EAdqrUWwm2jv3Hug9ypNn2wLHjy7g240DIxRXJN6Zi/s1AqNxLpQw0lH3dsqF+m zCbxxAMb/B/sD2j0UV9UaupHOZw2fEFCOO+3FR62Pl5XHq2umY1Eh8qIX+XkU3jQwGlG jR/a7lY96DDd9MeGk8RoXZpCqOHzm9EkCpFrHqoIkPpOto7WtcNQtlqzksl1tfizc9ba CAqA== 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=jvX6d8XTRW2yINP7UUXQMp5wulYHcQa40IZNorojim4=; b=aObX08u0iarvRNcjo+I+Z8RXstyopCPPVBxsv/om0Yrl/uNRQIPbNmKE7bJfPw67Ih isdETz3FJHz/Fo7ufwYRBUhD/Mr3udd5bKbWkMhJ/mE2eE4JKBA30iWvaLRLE4RfGj2w etUmy5OBEtNPCtxLAZaR7gdr8DvJ6f4GW2WhLymPv9dRHVW/iP3kjk4VFIl9BGsnS/X1 13UrBFUaLyHOneZQyRmQAWYqZ944Se5EMp9Do1ZI52GY6hXFvesYxtttQnDKB25FUOpe CubtuneH2CsE48QTelxyy2q8g10Egbh1Nx0N1ZEbpcqM95xodvryQ14411GBXOX/q5n/ OJTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Wa09kRYm; 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 e11si29014685qkm.49.2019.07.26.11.06.18 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jul 2019 11:06:18 -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=Wa09kRYm; 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]:42816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr4bg-0004Le-8w for patch@linaro.org; Fri, 26 Jul 2019 14:06:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59853) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr4Nz-0007fg-4D for qemu-devel@nongnu.org; Fri, 26 Jul 2019 13:52:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hr4Nv-0001SW-8G for qemu-devel@nongnu.org; Fri, 26 Jul 2019 13:52:05 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:38257) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hr4Nu-00013K-UG for qemu-devel@nongnu.org; Fri, 26 Jul 2019 13:52:03 -0400 Received: by mail-pf1-x442.google.com with SMTP id y15so24861302pfn.5 for ; Fri, 26 Jul 2019 10:51:43 -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=jvX6d8XTRW2yINP7UUXQMp5wulYHcQa40IZNorojim4=; b=Wa09kRYm6m3CF3ttivMMv8u/yQKXirGUlAJVWq4s8hIZCc1gyeFdJCRrNob2zTCJWQ lrCwA4+AzRPw+J4AJvZtpquXXt5eFlYD5ol9rVJufp+s+f+oqzyPQkc1kPm0BqF913Vz Bww8YS5g8Wsh/rZaM7NhrWOktQRCJBDtXvML3bTNiRUaepVEiDDW0MAF8Ld7ERVo7Oj9 jrd1+ADjUKBWHNbYP15JpcwL0g1KP7+uH8kVoEAUo15Rn0RAUp3I0+Z8waiX1/DVLkP2 Ei4TmzmUqskYn3FqJ7JFm0BFIfX22UKjw6dTA3dxK78iyUJacKIKi03qFMcpk0H9iD3d eevA== 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=jvX6d8XTRW2yINP7UUXQMp5wulYHcQa40IZNorojim4=; b=pMV2YAywcXWvr543wYMFa7HhCRrGdEkhCpJ4V3X5f4W7/nNT9u6KRGvtBjVvmY/Ytc vX4MxC/FOsNPFta/EAvAxtQHeDYPAWdDcmQ3dlKba1eSm5poNvLCr1BvTa+CSumHykDo KQp4J92jXAL62THXCgb9N/5AUgNr7imrBWQE/qsLdJQd3pP0HRcOxMxpjPfpI5wWkoWK N61OMcqj+w9lR6twSHW9OPnudA1/OaEDQBSVlwHbPjPZNzrvdJTKtFEBGLHWbi7AI/LC h9/HYcRzWmM2oATfwuBZ99otbsLbnZc0RfgXon2Fmfdbsx7cLIrKj+L8HkpvgafnGnwI H2uA== X-Gm-Message-State: APjAAAWn0Xplubd68aR6sqp6enIIUH+na8vkfYQwtLDvnyz2qY5MqGtV 22LzZDj9uMdNwgQgZsRYRpg+T+6CR74= X-Received: by 2002:a65:5188:: with SMTP id h8mr59842315pgq.294.1564163502521; Fri, 26 Jul 2019 10:51:42 -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.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 10:51:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 26 Jul 2019 10:50:22 -0700 Message-Id: <20190726175032.6769-58-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::442 Subject: [Qemu-devel] [PATCH 57/67] target/arm: Convert T16, nop hints 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 | 3 +-- target/arm/t16.decode | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/target/arm/translate.c b/target/arm/translate.c index c9386ceefb..55404414a2 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -10779,8 +10779,7 @@ static void disas_thumb_insn(DisasContext *s, uint32_t insn) case 15: /* IT, nop-hint. */ if ((insn & 0xf) == 0) { - gen_nop_hint(s, (insn >> 4) & 0xf); - break; + goto illegal_op; /* nop hint, in decodetree */ } /* * IT (If-Then) diff --git a/target/arm/t16.decode b/target/arm/t16.decode index 8864f89a81..90a4b71a45 100644 --- a/target/arm/t16.decode +++ b/target/arm/t16.decode @@ -19,6 +19,7 @@ # This file is processed by scripts/decodetree.py # +&empty !extern &s_rrr_shi !extern s rd rn rm shim shty &s_rrr_shr !extern s rn rd rm rs shty &s_rri_rot !extern s rn rd imm rot @@ -204,3 +205,19 @@ SETEND 1011 0110 010 1 E:1 000 &setend REV 1011 1010 00 ... ... @rdm REV16 1011 1010 01 ... ... @rdm REVSH 1011 1010 11 ... ... @rdm + +# Hints + +{ + YIELD 1011 1111 0001 0000 + WFE 1011 1111 0010 0000 + WFI 1011 1111 0011 0000 + + # TODO: Implement SEV, SEVL; may help SMP performance. + # SEV 1011 1111 0100 0000 + # SEVL 1011 1111 0101 0000 + + # The canonical nop has the second nibble as 0000, but the whole of the + # rest of the space is a reserved hint, behaves as nop. + NOP 1011 1111 ---- 0000 +}