From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106356 invoked by alias); 1 Jun 2019 07:26:59 -0000 Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org Received: (qmail 106347 invoked by uid 89); 1 Jun 2019 07:26:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_INFOUSMEBIZ,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=redhatcom, redhat.com, UD:me, HX-Spam-Relays-External:209.85.215.196 X-HELO: mail-pg1-f196.google.com Received: from mail-pg1-f196.google.com (HELO mail-pg1-f196.google.com) (209.85.215.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Jun 2019 07:26:58 +0000 Received: by mail-pg1-f196.google.com with SMTP id h17so5324359pgv.0 for ; Sat, 01 Jun 2019 00:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z8PbMhRDab/aMPV4H3iub84s5VK+VgIPW9M00hbVeDg=; b=CLLzEoWyqo50K0TfbDIwIgv9YHJtSd0kUkNLNeNEAc+ToLemZH+owVMV/SXMAdb5mv FWVZ1EaKIubx6R52IsaS03VDd0MdkHwkkysAfJhsgKl6+adZhLhOw+19pTxGdM2KO5kd VcIvvBbAom/vcb1qFUz2IFY7EHNf5N2O1gdM2E2r6hdm2oy0B/VpsfLJjTSatJCFh6Xe uMBD4Q3EYchW9koIhY+JQwANW/znVYYzjd6gZcYI/x4MgeeWAqLwJJXQHnhjHIURSOpB M6qUCFGGcuK3eZWX+cUeYphn2hoGjLjJhjzge/fb0VRSP00VJ0ufbgRESiAHjlnF+mFH N9lA== Return-Path: Received: from localhost (g30.211-19-85.ppp.wakwak.ne.jp. [211.19.85.30]) by smtp.gmail.com with ESMTPSA id x128sm8907582pfd.186.2019.06.01.00.26.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 01 Jun 2019 00:26:55 -0700 (PDT) From: Stafford Horne To: cgen@sourceware.org Cc: Openrisc , Stafford Horne Subject: [PATCH 2/2] gen-doc: Updates for latest cpu definitions Date: Sat, 01 Jun 2019 07:26:00 -0000 Message-Id: <20190601072629.4070-3-shorne@gmail.com> In-Reply-To: <20190601072629.4070-1-shorne@gmail.com> References: <20190601072629.4070-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2019-q2/txt/msg00015.txt.bz2 Doc generation was no longer working due to several issues. - openrisc.cpu no longer exists (its not cpu/or1k.cpu in binutils-gdb) - Relavive paths for archfile no longer work due to wrong cwd. - Many architectures have been added and removed. I have be able to get this working and added all the architectures I could get working with the below changes. I have posted the results here: http://shorne.noip.me/downloads/gen-doc/ ChangeLog: yyyy-mm-dd Stafford Horne * gen-all-doc (archs): Add new archs and update locations. (archfile): Prepend cgendir. (index.html gen): Change name openrisc to or1k. * html.scm (gen-html-trailer): Change redhat.com to sourceware.org. --- gen-all-doc | 46 ++++++++++++++++++++++++++++++++-------------- html.scm | 2 +- 2 files changed, 33 insertions(+), 15 deletions(-) mode change 100644 => 100755 gen-all-doc diff --git a/gen-all-doc b/gen-all-doc old mode 100644 new mode 100755 index e2a49b6..5db3200 --- a/gen-all-doc +++ b/gen-all-doc @@ -18,7 +18,7 @@ # . # -# Run this script in the src/cgen directory. +# Run this script in the binutils-gdb/cgen directory. # Exit on any error. set -e @@ -26,28 +26,46 @@ set -e # For debugging. set -x -# ??? Some are missing, need to add them after some research. -#../cpu/m32c.cpu -#../cpu/xc16x.cpu +# ??? Broken archs not in list, grouped by error +# h-prefixreg error +#../cpu/cris.cpu +# Error: unexpected operand: #f +# ../cpu/m32c.cpu +# ../cpu/xc16x.cpu +# cpu/ia32.cpu +# sh64-compact.cpu:316:3: Error: Instruction has opcode bits outside of its mask +# ../cpu/sh.cpu +# ia64.cpu:924:invalid argument to %sym: (if (eq? (string-length "") 0) "" ".") +# ../cpu/ia64.cpu +# sparc.cpu:389:1: define-hardware: hardware already defined: h-gr +# cpu/sparc.cpu + +# Archs in parent directly should be from the binutils-gdb project. Others are +# hosted here in cgen. + archs=" -cpu/fr30.cpu -cpu/arm.cpu +../cpu/epiphany.cpu +../cpu/fr30.cpu ../cpu/frv.cpu -cpu/i960.cpu -cpu/ip2k.cpu +../cpu/ip2k.cpu ../cpu/iq2000.cpu ../cpu/lm32.cpu ../cpu/m32r.cpu -cpu/mep.cpu +../cpu/mep.cpu ../cpu/mt.cpu -cpu/openrisc.cpu +../cpu/or1k.cpu +../cpu/xstormy16.cpu +cpu/arm.cpu +cpu/i960.cpu +cpu/m68k.cpu +cpu/play.cpu +cpu/powerpc.cpu cpu/sh.cpu -cpu/xstormy16.cpu " if [ ! -f sim.scm ] then - echo "Not in the src/cgen directory." >& 2 + echo "Not in the cgen source directory." >& 2 exit 1 fi @@ -66,7 +84,7 @@ export cgendir=`pwd` for a in $archs do - archfile=../$a + archfile=$cgendir/$a arch=$(basename $archfile .cpu) case $arch in @@ -129,7 +147,7 @@ EOF arm-thumb.*) name="ARM Thumb" ;; frv-1.*) name="FRV FR400" ;; frv-2.*) name="FRV FR500" ;; - openrisc.*) name="Openrisc" ;; + or1k.*) name="OpenRISC" ;; xstormy16.*) name="Xstormy16" ;; *) name=`echo ${html/.html} | tr $lower $upper` ;; esac diff --git a/html.scm b/html.scm index 3d6bb4a..0a57a73 100644 --- a/html.scm +++ b/html.scm @@ -111,7 +111,7 @@ See the input .cpu file(s) for copyright information. "This documentation was machine generated from the cgen cpu description\n" "files for this architecture.\n" "
\n" - "http://sources.redhat.com/cgen/\n" + "https://sourceware.org/cgen/\n" "\n" "\n" ) -- 2.21.0