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