The latter option is one way to pass parameters to magic calls.
Daniel Sánchez Pedreño wrote:
As i know, the sethi instruction needs a constant value,
so you can't use the getpid as a parameter, so i dont understand your
reply. To bind the threads to processors is the last option i see.
I think another option could be write the pid in a physic register and
read it in Ruby after the magic instruction is captured. I'll try this.
Regards
--
http://sanatox.es
_______________________________________________
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.
|
|