gem5-users@gem5.org

The gem5 Users mailing list

View all threads

How to set OS instructions and user applications' instructions apart?

FH
Fateme Hosseini
Thu, Jul 14, 2022 1:05 AM

Hi all,

I have extended gem5's simple cpu to perform some modifications on the
output of certain instructions, and it works fine under the SE for my
applications.  However, I need to run my applications in FS mode now and I
want the extension to only affect instructions from my applications and not
those executed by OS. Any thoughts on how to differentiate them are
appreciated.

Thank you,
Fateme

Hi all, I have extended gem5's simple cpu to perform some modifications on the output of certain instructions, and it works fine under the SE for my applications. However, I need to run my applications in FS mode now and I want the extension to only affect instructions from my applications and not those executed by OS. Any thoughts on how to differentiate them are appreciated. Thank you, Fateme
AA
Ayaz Akram
Thu, Jul 14, 2022 3:47 AM

Hi Fateme,

I think you can use ISA specific "inUserMode()"  function to check if you
are in user mode at a particular time. This might help you to decide when
you want to trigger your changes on the output of specific instructions (I
assume that your changes are post instruction execution, and you have not
changed the actual behavior of the instruction through the ISA description
sub-system).

-Ayaz

On Wed, Jul 13, 2022 at 6:08 PM Fateme Hosseini fateme@udel.edu wrote:

Hi all,

I have extended gem5's simple cpu to perform some modifications on the
output of certain instructions, and it works fine under the SE for my
applications.  However, I need to run my applications in FS mode now and I
want the extension to only affect instructions from my applications and not
those executed by OS. Any thoughts on how to differentiate them are
appreciated.

Thank you,
Fateme


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

Hi Fateme, I think you can use ISA specific "inUserMode()" function to check if you are in user mode at a particular time. This might help you to decide when you want to trigger your changes on the output of specific instructions (I assume that your changes are post instruction execution, and you have not changed the actual behavior of the instruction through the ISA description sub-system). -Ayaz On Wed, Jul 13, 2022 at 6:08 PM Fateme Hosseini <fateme@udel.edu> wrote: > Hi all, > > I have extended gem5's simple cpu to perform some modifications on the > output of certain instructions, and it works fine under the SE for my > applications. However, I need to run my applications in FS mode now and I > want the extension to only affect instructions from my applications and not > those executed by OS. Any thoughts on how to differentiate them are > appreciated. > > Thank you, > Fateme > > > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org >