Re: [Gems-users] How to know address space id (ASI) at opal ?


Date: Sun, 18 Apr 2010 22:05:51 +0900
From: junghun lee <ijij41@xxxxxxxxx>
Subject: Re: [Gems-users] How to know address space id (ASI) at opal ?

Dear.. Dan...or anyone.

 

Thank you for your response.

 

According to my experiment, you are right. In case of process of user, they only used ASI 0x80, but have difference about value of g7 register. (Thread ID).

 

So,

Do you know how to distinguish each process about user and supervisor, if you don't use ASI ???

 

I need to distinguish process for knowing frequency of thread migration.

 

Thanks.

 

JH



2010/4/18 Dan Gibson <degibson@xxxxxxxx>
I don't know how to get ASI's when running with Opal, but you should be aware that ASIs are NOT linked to individual processes -- SPARC's ASIs serve a completely different purpose. E.g., nearly all user-space accesses are ASI 0x80 (i.e., all processes will use ASI 0x80). Other ASIs are used to access memory differently, e.g., the trap handlers can use ASI_AS_IF_USER_PRIMARY to touch memory in the process that trapped, and there are ASIs to reverse endianness, etc.

FYI.

Regards,
Dan

On Sun, Apr 18, 2010 at 2:37 AM, junghun lee <ijij41@xxxxxxxxx> wrote:
Hi everyone.
I'm JH. And I have one question, so I post it at this.
 
Now, I've used just ruby, and at ruby, if I want to know address space id (ASI), I could find the value through memory_transaction_t at simics/SimicsDriver.C: makeRequest functions.  ( that is, mem_trans->address_space )
That is not problem.
However, I've added opal to ruby, so I have a problem.
I did figure out other makeRequest function called at interface/OpalInterface.C. Of course, It is ovious.
 
In case of using only ruby, if I wan't know addess space id (ASI or process id), I cound use struct of mem_trans, but in case of using opal, I could not use struct of mem_trans, so I could get value of addess_space.
Now I wan't you know process id when accessing to memory.
 
What should I do ? How ? 
Can you help me? anyone?
 
Thanks.
 
JH

_______________________________________________
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.





--
http://www.cs.wisc.edu/~gibson [esc]:wq!

_______________________________________________
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→]