From nobody Tue Feb 10 00:39:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.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 header.i=@quicinc.com; spf=pass (zohomail.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=quicinc.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1581381986248826.0585172774025; Mon, 10 Feb 2020 16:46:26 -0800 (PST) Received: from localhost ([::1]:41624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1Jh2-0001s4-SH for importer@patchew.org; Mon, 10 Feb 2020 19:46:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60410) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1Jc5-0001Fa-9l for qemu-devel@nongnu.org; Mon, 10 Feb 2020 19:41:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1Jc2-00060S-W0 for qemu-devel@nongnu.org; Mon, 10 Feb 2020 19:41:17 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:59203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j1Jc2-0004tJ-HX for qemu-devel@nongnu.org; Mon, 10 Feb 2020 19:41:14 -0500 Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 10 Feb 2020 16:41:00 -0800 Received: from vu-tsimpson-aus.qualcomm.com (HELO vu-tsimpson1-aus.qualcomm.com) ([10.222.150.1]) by ironmsg02-sd.qualcomm.com with ESMTP; 10 Feb 2020 16:40:59 -0800 Received: by vu-tsimpson1-aus.qualcomm.com (Postfix, from userid 47164) id C1BCC1BBA; Mon, 10 Feb 2020 18:40:59 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1581381674; x=1612917674; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7J02XIJDUNa61CDvaSOSBnTQmnONmNE19JbMqcSXgss=; b=KuJygL6WY8Hk/Ubbs8qmv/xZu6DG+OCmjCazzYjhzkTK2/12LRCo+lNQ DMkb5oQSIINIZeSHb9uHHsARvL8ZRl/Uy6nqfxuhebh6YJs7YDLsfI5ZB D9+45j7LhQkYnfFhKl0RFLq6PIttgOTYp5nC8kO3yhIn0z10OOkXKVvll A=; From: Taylor Simpson To: qemu-devel@nongnu.org Subject: [RFC PATCH 24/66] Hexagon generator phase 2 - op_attribs_generated.h Date: Mon, 10 Feb 2020 18:40:02 -0600 Message-Id: <1581381644-13678-25-git-send-email-tsimpson@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1581381644-13678-1-git-send-email-tsimpson@quicinc.com> References: <1581381644-13678-1-git-send-email-tsimpson@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 199.106.114.39 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: riku.voipio@iki.fi, richard.henderson@linaro.org, laurent@vivier.eu, Taylor Simpson , philmd@redhat.com, aleksandar.m.mail@gmail.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Lists all the attributes associated with each instruction Signed-off-by: Taylor Simpson --- target/hexagon/do_qemu.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/target/hexagon/do_qemu.py b/target/hexagon/do_qemu.py index 5439964..f297931 100755 --- a/target/hexagon/do_qemu.py +++ b/target/hexagon/do_qemu.py @@ -797,3 +797,16 @@ realf.write(f.getvalue()) realf.close() f.close() =20 +## +## Generate the op_attribs_generated.h file +## Lists all the attributes associated with each instruction +## +f =3D StringIO() +for tag in tags: + f.write('OP_ATTRIB(%s,ATTRIBS(%s))\n' % \ + (tag,string.join(sorted(attribdict[tag]),","))) +realf =3D open('op_attribs_generated.h', 'wt') +realf.write(f.getvalue()) +realf.close() +f.close() + --=20 2.7.4