From patchwork Sun Nov 6 17:15:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Ricardo Ziviani X-Patchwork-Id: 9413961 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5877860515 for ; Sun, 6 Nov 2016 17:20:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32DB728D0D for ; Sun, 6 Nov 2016 17:20:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1533D28D19; Sun, 6 Nov 2016 17:20:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9AF8128D0D for ; Sun, 6 Nov 2016 17:20:37 +0000 (UTC) Received: from localhost ([::1]:45456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3R7U-0001l1-Hv for patchwork-qemu-devel@patchwork.kernel.org; Sun, 06 Nov 2016 12:20:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3R2p-0006mL-Ak for qemu-devel@nongnu.org; Sun, 06 Nov 2016 12:15:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3R2o-0001pn-5e for qemu-devel@nongnu.org; Sun, 06 Nov 2016 12:15:47 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:58540) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3R2n-0001p3-T9 for qemu-devel@nongnu.org; Sun, 06 Nov 2016 12:15:46 -0500 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uA6HDetd027104 for ; Sun, 6 Nov 2016 12:15:45 -0500 Received: from e24smtp03.br.ibm.com (e24smtp03.br.ibm.com [32.104.18.24]) by mx0a-001b2d01.pphosted.com with ESMTP id 26hbgvrr71-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 06 Nov 2016 12:15:44 -0500 Received: from localhost by e24smtp03.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 6 Nov 2016 15:15:42 -0200 Received: from d24dlp02.br.ibm.com (9.18.248.206) by e24smtp03.br.ibm.com (10.172.0.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 6 Nov 2016 15:15:39 -0200 Received: from d24relay02.br.ibm.com (d24relay02.br.ibm.com [9.13.184.26]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id 4F7651DC0054 for ; Sun, 6 Nov 2016 12:15:39 -0500 (EST) Received: from d24av05.br.ibm.com (d24av05.br.ibm.com [9.18.232.44]) by d24relay02.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uA6HFd0h33882448 for ; Sun, 6 Nov 2016 15:15:39 -0200 Received: from d24av05.br.ibm.com (localhost [127.0.0.1]) by d24av05.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id uA6HFcmv003035 for ; Sun, 6 Nov 2016 15:15:38 -0200 Received: from pacoca.ibm.com ([9.80.235.221]) by d24av05.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id uA6HFTVx002909; Sun, 6 Nov 2016 15:15:37 -0200 From: Jose Ricardo Ziviani To: qemu-devel@nongnu.org Date: Sun, 6 Nov 2016 15:15:22 -0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1478452528-13684-1-git-send-email-joserz@linux.vnet.ibm.com> References: <1478452528-13684-1-git-send-email-joserz@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16110617-0024-0000-0000-00000122792F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16110617-0025-0000-0000-000015E23D5F Message-Id: <1478452528-13684-4-git-send-email-joserz@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-11-06_04:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611060327 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 148.163.156.1 Subject: [Qemu-devel] [PATCH Risu v2 3/9] Change mode directive of ARM risu files X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP If different risufiles are managed by a single risugen (like thumb.risu, aarch64.risu, and arm.risu are managed by risugen_arm.pm) the mode directive identifies such operation by prepending the module name: thumb.risu - .mode arm.thumb aarch64.risu = .mode arm.aarch64 arm.risu = .mode arm Signed-off-by: Jose Ricardo Ziviani --- aarch64.risu | 2 +- arm.risu | 1 + thumb.risu | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aarch64.risu b/aarch64.risu index 6957f95..2f3341c 100644 --- a/aarch64.risu +++ b/aarch64.risu @@ -11,7 +11,7 @@ ############################################################################### # Input file for risugen defining AArch64 instructions -.mode aarch64 +.mode arm.aarch64 # from ARM DDI 0487A.a ARM Architecture Reference Manual # XXX NIY: branch, exception generation, system insns diff --git a/arm.risu b/arm.risu index 025a87b..13ea019 100644 --- a/arm.risu +++ b/arm.risu @@ -10,6 +10,7 @@ ############################################################################### # Input file for risugen defining ARM instructions +.mode arm # Some random patterns #ADD A1 cond:4 0000 100 s rn:4 rd:4 imm:5 type:2 0 rm:4 diff --git a/thumb.risu b/thumb.risu index 8e14c95..bf7556b 100644 --- a/thumb.risu +++ b/thumb.risu @@ -11,7 +11,7 @@ # Input file for risugen defining Thumb instructions -.mode thumb +.mode arm.thumb #ADD T1 000 1100 rm:3 rn:3 rd:3 #ADD T3 11101 01 1000 s rn:4 0 imma:3 rd:4 immb:2 type:2 rm:4