From nobody Tue Feb 10 03:16:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1566253773; cv=none; d=zoho.com; s=zohoarc; b=S4tngMbGZeWZDzunaashS7iTXXNEBvBambwbSYILYzIgvUs2RPSOEEZgYdSQxFuw//CoTrgzBKetkyMpOoFtxTrbTvU0zHZerNe9i/04YizWbrW0Vn971BVlc7cI4d2zKOXsU7o2kol61qWsK1S6knBWyLzT2F6UPyDV4bsNxoY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566253773; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=JUuR6qD1PO3BvQ9lvZTub8abynQZibA90MasCzAeg3k=; b=Gi2ss+P7mntv2sn3RffHJPOMMMe+MGH1TdSzSkDALuZz8jTLB4xLM3X3AZDtnZEoqR4R5cDallcxOYPjbOiCvVyt2l4wGz07T7UDv08WcY9BSlQORR+RmPQkVrf1PxcFxAnRjsRTTBvAjGb4ouKyV6Nosy41pXp1C4VAu5P97DI= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156625377340289.01958174696199; Mon, 19 Aug 2019 15:29:33 -0700 (PDT) Received: from localhost ([::1]:60048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzq9c-00057d-98 for importer@patchew.org; Mon, 19 Aug 2019 18:29:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59985) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzpMt-0002pM-9d for qemu-devel@nongnu.org; Mon, 19 Aug 2019 17:39:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzpMs-0006t7-8q for qemu-devel@nongnu.org; Mon, 19 Aug 2019 17:39:11 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:46333) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzpMs-0006sZ-3q for qemu-devel@nongnu.org; Mon, 19 Aug 2019 17:39:10 -0400 Received: by mail-pf1-x441.google.com with SMTP id q139so1934324pfc.13 for ; Mon, 19 Aug 2019 14:39:09 -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.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 14:39:07 -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=JUuR6qD1PO3BvQ9lvZTub8abynQZibA90MasCzAeg3k=; b=kK8uVJsIVRdJcdeeBbE7un71lp4z2dtG1Q+15hPBwwYRGcr8hm5Vil9e2O5fV0aMt3 n/oD+Hvi2Squ6jcTgWWbVDZl9bODPlfvJxa0bpK0y8l1zmDPy/T2rxR3tF66GNKdcQp3 8m27hZJNWVHrTTiQgQxmBTNw/+c0Vmgj0EOxPhDxfuFj5WVzbPg9qVxh1LtLx0ugJwGh GIqsiNUpM3So2ojmT2ebgBDuqBaZf4FMrFi/pZITgGIa0+NhPCh0VcEjrAGrJxcR1JEO FGTXRAg+JeLOcGjuYANIW8GPt7kVHc7brJOsUyif4E9dcftKsDZ8bWedOzcDKNZw05hx N3RA== 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=JUuR6qD1PO3BvQ9lvZTub8abynQZibA90MasCzAeg3k=; b=r1dhttS+7bK4ehoZTqgZyjpK1+vGQO++0E6S9PeJCnO/X9mEt4f6rHR3Ko53E/t2kn bbhcW3ZPbOzqMmZIFwbABo7PMcdZq83F+x+iC+weR+z6RK7Q6411rhlaS4WHVJgYPULu pLFXJHblESuRo33Y7+9yAVIwHCET1YToA65tVdHvZketCnagJvLHq9ciYPyWYyvjZLF8 yhMKcirRfpfTEOAaSp1rTy+mC5NQvimVh0SUVGxs8TBiVjCZFfn9L/ZvBqpcf5F6Ekxi IlC+2qs1t6WoOwUC6cmUdJ4wxB9t9EBcbD67syblZVK+gUrKCr0Dqdf4HjG4ljSHJwEI PgOg== X-Gm-Message-State: APjAAAUiKGtwTBk80pV9KEexrD18RxifpScdccKTiS2zgcUfBZ0fjoxV ayVYbd/Dk0Z/1mY0mUg6VU862sQTRzc= X-Google-Smtp-Source: APXvYqzV0wI0tQm4HPyXJB5Y5I5tSOvZyGR7Ytb947wV3BKOHWin5Xp2jeRFD0mZHxJ+kBKABTg1Og== X-Received: by 2002:a17:90a:a78b:: with SMTP id f11mr23431921pjq.16.1566250748527; Mon, 19 Aug 2019 14:39:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:37:45 -0700 Message-Id: <20190819213755.26175-59-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::441 Subject: [Qemu-devel] [PATCH v2 58/68] 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 Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/translate.c | 3 +-- target/arm/t16.decode | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/target/arm/translate.c b/target/arm/translate.c index 176cba2992..67f0202d29 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -10769,8 +10769,7 @@ static void disas_thumb_insn(DisasContext *s, uint3= 2_t insn) =20 case 15: /* IT, nop-hint. */ if ((insn & 0xf) =3D=3D 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 ec21be7ef0..d5b046d105 100644 --- a/target/arm/t16.decode +++ b/target/arm/t16.decode @@ -19,6 +19,7 @@ # This file is processed by scripts/decodetree.py # =20 +&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 +} --=20 2.17.1