From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21884 invoked by alias); 18 Aug 2010 17:43:43 -0000 Received: (qmail 21872 invoked by uid 22791); 18 Aug 2010 17:43:40 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-yw0-f41.google.com (HELO mail-yw0-f41.google.com) (209.85.213.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 18 Aug 2010 17:43:31 +0000 Received: by ywo7 with SMTP id 7so401980ywo.0 for ; Wed, 18 Aug 2010 10:43:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.43.20 with SMTP id v20mr634022ybj.318.1282153409981; Wed, 18 Aug 2010 10:43:29 -0700 (PDT) Received: by 10.150.53.4 with HTTP; Wed, 18 Aug 2010 10:43:29 -0700 (PDT) In-Reply-To: <20100719110938.GB12047@redhat.com> References: <20100719110938.GB12047@redhat.com> Date: Wed, 18 Aug 2010 17:43:00 -0000 Message-ID: Subject: Re: Loading image-file in SID. From: Deaf Beed To: "Frank Ch. Eigler" Cc: sid@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2010-q3/txt/msg00005.txt.bz2 Hi Thanks. That worked out well for me. Really appreciated the response. I now generate a sid configuration and edit it to add my component. >$ arm-elf-sid --board=3Dpid7t-normalmap --load cpu=3Dprogram.x --no-run The 'program.x' is a bunch of prints, linked with the eCos OS built for pid7t. The program executes and I can trace the prints at the UART. However, once the prints have executed, the control passes to, I think, the OS idle loop and the simulation does not exit on its own. I have to stop it. Is there a way to make the simulation exit/finish on its own? maybe by programming some sid simulation component. -Shamik On Mon, Jul 19, 2010 at 4:39 PM, Frank Ch. Eigler wrote: > Hi - > > On Mon, Jul 19, 2010 at 04:34:44PM +0530, Deaf Beed wrote: >> I have been playing around with SID for a while and have created a >> component of mine. =A0[...] > > Great. =A0Please feel free to contribute any pieces you are able. > >> [...] =A0I realize that the PC also needs to be set and tried to do >> that using "set cpu pc (int of)0x8040" but without any >> success. Could you please suggest the required changes, >> etc. required to load and run and arbitrary image using SID alone? > > Certainly. =A0See the sw-load-elf component, for example as configured > by the bsp/configrun-sid perl script. =A0It connects to a memory mapper > bus (to write into memory), and a CPU (the start-pc-set! pins) > > - FChE >