From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10801 invoked by alias); 7 Dec 2009 21:29:09 -0000 Received: (qmail 10793 invoked by uid 22791); 7 Dec 2009 21:29:09 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Dec 2009 21:28:57 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 5D34410D85; Mon, 7 Dec 2009 21:28:50 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 4C678107BA; Mon, 7 Dec 2009 21:28:50 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1NHl8T-0000CT-Ix; Mon, 07 Dec 2009 16:28:49 -0500 Date: Mon, 07 Dec 2009 21:29:00 -0000 From: Daniel Jacobowitz To: DJ Delorie Cc: gdb-patches@sourceware.org Subject: Re: [RFC] Add support for Renesas RX architecture Message-ID: <20091207212849.GA455@caradoc.them.org> Mail-Followup-To: DJ Delorie , gdb-patches@sourceware.org References: <20091203161906.7f7a6c06@redhat.com> <20091204173837.GD2891@adacore.com> <20091207133912.3e97099d@redhat.com> <20091207205641.GA30964@caradoc.them.org> <200912072120.nB7LKksp002963@greed.delorie.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200912072120.nB7LKksp002963@greed.delorie.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00103.txt.bz2 On Mon, Dec 07, 2009 at 04:20:46PM -0500, DJ Delorie wrote: > > > Awesome! I've always wanted opcodes to do this. > > Look at opcodes/rx-decode.opc and opcodes/opc2c.c > > The simulator part is in src/sim/rx/rx.c > > The disassembler is somewhat trivial too, in opcodes/rx-dis.c, being > all of 199 lines. I took a look. It's a little opaque (I don't suppose there's documentation on what opc2c does somewhere), but I get the drift. Neat. -- Daniel Jacobowitz CodeSourcery