Re: [Gems-users] pass in parameters to ruby at run-time


Date: Sat, 20 Oct 2007 22:42:15 -0500
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] pass in parameters to ruby at run-time
Thats a good question... you can either find it in the Simics documentation (either Simics user guide, Simics target guide, or Simics reference manual), or you can just 'roll your own' by calling SIM_read_register() with a particular parameter and then SIM_register_name() if the read register call doesn't raise a simics exception. (again, see the simics docs for this)

Regards,
Dan

Carole-Jean Wu wrote:
Hello,
   Can you point me to where I can find the register number mapping?

Thanks,
Carole

On 10/19/07, Dan Gibson < degibson@xxxxxxxx> wrote:
You can set up your dynamic data values in registers then issue a magic call. Ruby can then call SIMICS_read_register() (or something like that -- see ruby/simics/interface.h).

Regards,
Dan

Carole-Jean Wu wrote:
Hello,
Does anyone know how to pass in dynamic data values (e.g. addresses that are determined at run-time) to ruby? From my understanding, magic-instructions don't help in this case. (Please correct me if I am wrong.)

Thanks,
Carole

_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/ " to your search.

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site: https://lists.cs.wisc.edu/archive/gems-users/" to your search.




_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
[← Prev in Thread] Current Thread [Next in Thread→]