Re: Loading image-file in SID.

Deaf Beed <[email protected]> Wed, 18 Aug 2010 23:13:29 +0530
Newsgroups gmane.comp.emulators.sid.devel
Message-ID <[email protected]>
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=pid7t-normalmap --load cpu=program.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 <[email protected]> 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.  [...]
>
> Great.  Please feel free to contribute any pieces you are able.
>
>> [...]  I 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.  See the sw-load-elf component, for example as configured
> by the bsp/configrun-sid perl script.  It connects to a memory mapper
> bus (to write into memory), and a CPU (the start-pc-set! pins)
>
> - FChE
>