From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7074 invoked by alias); 14 Sep 2004 22:12:53 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7067 invoked from network); 14 Sep 2004 22:12:51 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 14 Sep 2004 22:12:51 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8EMCk5a028660 for ; Tue, 14 Sep 2004 18:12:51 -0400 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8EMCkr13560; Tue, 14 Sep 2004 18:12:46 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id CC7F628D2; Tue, 14 Sep 2004 18:10:37 -0400 (EDT) Message-ID: <41476C5D.4050209@gnu.org> Date: Tue, 14 Sep 2004 22:12:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040831 MIME-Version: 1.0 To: David Voit Cc: gdb@sources.redhat.com Subject: Re: Need help at writing basic igen simulator References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg00111.txt.bz2 If you leave this out: > { > /* TODO */ > } igen should automatically generate code to throw an unimplemented instruction exception. > If i write the instruction identifer in hexform like this > "8.0xe3,8.reg,16.value::::setl" igen fails with "ld-insn.c:293: assertion > failed - word->first->last < 0" it this the correct behavior. Hmm, forgotten that it was possible to specify hex values. Looking at the mn10300, I think you need: :option:::insn-specifying-widths:true I've not tried to bring up an IGEN simulator from scratch for some years - the onces I worked on were rewrites of existing hand written simulators. Andrew