From nobody Thu Nov 13 22:05:03 2025 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 ARC-Seal: i=1; a=rsa-sha256; t=1582909582; cv=none; d=zohomail.com; s=zohoarc; b=Tq4rZ5aH04ET1Clps8Q4XZfDyNZqORrgG3WQuNrId4dXv9267q8vjImQIpz8Fd5hgdvFwYVsBMXcZMzqaQw8U51ydNxCFO2YBgPL3LqkguOoTz2LQJH7rlvxRHdOCtqTpRQb1TRSmRy75VRn5S3/hBOkxworVXzJZ/fBeD/4CG8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582909582; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=7+Hc0jfS3tQCWIYlje1XKRzVTi6/FQnF/P9hm/fXxY0=; b=XTGeesr8bsAtDN49PlHkt96FzHwRSBUmQsEiLEm71OsYr9GZI5aQgSExxx1OyIqSPcUkDz3iwutFUq4QY/r/c9Tj+losP+e3rdZyC5KRaHuuR6uv74vzzBuIq11QPC5ukTDjMIaNin6JfAUKhduGzl4NU4vNXR/UwR3fihOQaWc= ARC-Authentication-Results: i=1; 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 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 158290958290185.4884101418927; Fri, 28 Feb 2020 09:06:22 -0800 (PST) Received: from localhost ([::1]:50932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7j5h-0003Oz-LR for importer@patchew.org; Fri, 28 Feb 2020 12:06:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57901) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7ikp-0003A6-Pv for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:44:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7iko-0005j5-Nz for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:44:47 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:13250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j7ikm-0005Uz-VE for qemu-devel@nongnu.org; Fri, 28 Feb 2020 11:44:45 -0500 Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-01.qualcomm.com with ESMTP; 28 Feb 2020 08:44:30 -0800 Received: from vu-tsimpson-aus.qualcomm.com (HELO vu-tsimpson1-aus.qualcomm.com) ([10.222.150.1]) by ironmsg05-sd.qualcomm.com with ESMTP; 28 Feb 2020 08:44:29 -0800 Received: by vu-tsimpson1-aus.qualcomm.com (Postfix, from userid 47164) id C8B84F0B; Fri, 28 Feb 2020 10:44:29 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1582908284; x=1614444284; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7+Hc0jfS3tQCWIYlje1XKRzVTi6/FQnF/P9hm/fXxY0=; b=E3xMIT9nB4DFef8+MY4vmtiE/7/yVS61YZWSd45AkHZ/3/elbqJ9jKuM IhkovSl/x/4g6ej29ntLkRiowUJ0AOvB5zCqs+H0viHa/I8UjhFs7z+SB sAMiPivPowXzYqsQH8PEYx8VjFkIU4tnV9IM7sMstcxnLAb1Wj0Z+xjeR s=; From: Taylor Simpson To: qemu-devel@nongnu.org Subject: [RFC PATCH v2 23/67] Hexagon generator phase 2 - qemu_wrap_generated.h Date: Fri, 28 Feb 2020 10:43:19 -0600 Message-Id: <1582908244-304-24-git-send-email-tsimpson@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582908244-304-1-git-send-email-tsimpson@quicinc.com> References: <1582908244-304-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.38 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) Gives a default definition of fWRAP_ for each instruction Signed-off-by: Taylor Simpson --- target/hexagon/do_qemu.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/target/hexagon/do_qemu.py b/target/hexagon/do_qemu.py index 6f0e376..3f52ef3 100755 --- a/target/hexagon/do_qemu.py +++ b/target/hexagon/do_qemu.py @@ -767,3 +767,17 @@ realf.write(f.getvalue()) realf.close() f.close() =20 +## +## Generate the qemu_wrap_generated.h file +## Gives a default definition of fWRAP_ for each instruction +## +f =3D StringIO() +for tag in tags: + f.write( "#ifndef fWRAP_%s\n" % tag ) + f.write( "#define fWRAP_%s(GENHLPR, SHORTCODE) GENHLPR\n" % tag ) + f.write( "#endif\n\n" ) +realf =3D open('qemu_wrap_generated.h', 'wt') +realf.write(f.getvalue()) +realf.close() +f.close() + --=20 2.7.4