Re: new board

cgd
2004-04-26T17:57:10Z

Unfortunately, as you've discovered, there's not much documentation
related to the simulator(s)...

At Mon, 26 Apr 2004 09:57:12 +0200, Stefano Martini wrote:
> I have seen two interesting commands:
>
> sim_do_command(sd,"memory region .....")
>
> sim_do_commandf(sd,"memory alias....");
>
> Which are the differences between sim_do_command and
> sim_do_commandf ?

looking at the changelogs:

* sim-utils.c (sim_do_commandf): New function, printf version of
sim_do_command.

That difference seems borne out by their usage.

> And more, which are the differences between memory region
> and memory alias?

memory region creates a region of memory to be used by the simulator.

memory alias creates a region in the address space that aliases an
existing region of memory.

As you can see from some of the code already there, this is used to
mock-up kseg1. (This method is, IMO, not ideal.)

chris