From patchwork Thu Nov 10 08:54:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 60337 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 71E23384F034 for ; Thu, 10 Nov 2022 08:55:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71E23384F034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668070528; bh=yn/V6FRP9yaT+HDW/HacBvxFpHTpyzky0hz2Q/XZczc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=sgztvQ9HecNkUOnJcV3vUlBFSiu93DmajRtkcMpZ70TG5Bl/6hGiRdZMWO6ztWxWs 487WenSpu4qDLE7Wlss0u3zSSboU/12PN08SMjBYphaMFC484bRAi8148pDrWA3XIF SnMVYaUDDaX9CsKk6ujjQZVmQhOAoMaX9ZKEI/bc= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 96AD83858D20 for ; Thu, 10 Nov 2022 08:55:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 96AD83858D20 Received: by smtp.gentoo.org (Postfix, from userid 559) id 453AB340F3D; Thu, 10 Nov 2022 08:55:01 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH] sim: ppc: rename ppc-instructions to powerpc.igen Date: Thu, 10 Nov 2022 15:54:57 +0700 Message-Id: <20221110085457.12812-1-vapier@gentoo.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Mike Frysinger via Gdb-patches From: Mike Frysinger Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" To make it clear this is an input to the igen tool, rename it with an igen extension. This matches the other files in the ppc dir (altivec & e500 igen files), and the other igen ports (mips, mn10300, v850). --- sim/ppc/BUGS | 2 +- sim/ppc/INSTALL | 6 +++--- sim/ppc/Makefile.in | 4 ++-- sim/ppc/{ppc-instructions => powerpc.igen} | 0 4 files changed, 6 insertions(+), 6 deletions(-) rename sim/ppc/{ppc-instructions => powerpc.igen} (100%) diff --git a/sim/ppc/BUGS b/sim/ppc/BUGS index 362b079e90c9..300c79120ce5 100644 --- a/sim/ppc/BUGS +++ b/sim/ppc/BUGS @@ -15,7 +15,7 @@ VEA: Missing VEA system calls. -ppc-instructions: +powerpc.igen: Missing or commented out instructions. diff --git a/sim/ppc/INSTALL b/sim/ppc/INSTALL index 9feac7b9e61f..22ead08de5f6 100644 --- a/sim/ppc/INSTALL +++ b/sim/ppc/INSTALL @@ -218,7 +218,7 @@ With just --enable-sim-warnings, the following -W options are enabled: Specify the file containing the rules for generating the instruction -decode and execute functions from the file ppc-instructions. +decode and execute functions from the file powerpc.igen. The form of the instruction decode and execute functions is controlled by an opcode table. It specifies: the combination of switch @@ -303,7 +303,7 @@ Create a duplicate copy of each instruction function hardwiring instruction fields that would have otherwise have been variable. As discussed above, igen outputs a C function generated from the file -ppc-instructions (using the opcode rules) for each of the +powerpc.igen (using the opcode rules) for each of the instructions. Thus multiple entries in the instruction decode tables may be pointing back at the same function. Enabling duplicate, will result in psim creating a duplicate of the instruction's function for @@ -343,7 +343,7 @@ disabled (using: --disable-sim-duplicate). Include/exclude PowerPC instructions that are specific to a particular implementation. -Some of the PowerPC instructions included in the file ppc-instructions +Some of the PowerPC instructions included in the file powerpc.igen are limited to certain specific PPC implementations. For instance, the instruction: diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index 05f357a31a0a..54e755e5bfeb 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -607,10 +607,10 @@ tmp-dgen: dgen ppc-spr-table $(srcroot)/move-if-change $(SILENCE) $(SHELL) $(srcroot)/move-if-change tmp-spreg.c spreg.c $(SILENCE) touch $@ -tmp-igen: igen $(srcdir)/ppc-instructions $(srcdir)/altivec.igen $(srcdir)/e500.igen $(IGEN_OPCODE_RULES) $(srcroot)/move-if-change +tmp-igen: igen $(srcdir)/powerpc.igen $(srcdir)/altivec.igen $(srcdir)/e500.igen $(IGEN_OPCODE_RULES) $(srcroot)/move-if-change $(ECHO_GEN) $(IGEN) $(IGEN_FLAGS) \ -o $(srcdir)/$(IGEN_OPCODE_RULES) \ - -I $(srcdir) -i $(srcdir)/ppc-instructions \ + -I $(srcdir) -i $(srcdir)/powerpc.igen \ -n icache.h -hc tmp-icache.h \ -n icache.c -c tmp-icache.c \ -n semantics.h -hs tmp-semantics.h \ diff --git a/sim/ppc/ppc-instructions b/sim/ppc/powerpc.igen similarity index 100% rename from sim/ppc/ppc-instructions rename to sim/ppc/powerpc.igen