Hello,

This sounds like you probably want to use "functional" accesses. These are
built for introspection and debugging, which is what it sounds like you
want to do. Using the System object, there is a `getSystemPort`
function that will return a gem5 port that you can use with functional
accesses to "backdoor" into the memory. See
http://doxygen.gem5.org/release/current/classSystem.html#a5ecbd1eaa3e0d19f4640bb71a0b59d64
.

Cheers,
Jason

On Sun, Aug 2, 2020 at 7:01 AM ABD ALRHMAN ABO ALKHEEL via gem5-users <
gem5-users@gem5.org> wrote:

> Hi All, how to read data from memory in Gem5 ? Can I read data from memory
> in Gem5  for a specific addresses? If so, should I use the virtual address
> or physical address? For example, how load instructions read the data from
> memory? Any help would be appreciated. Thanks
>
> ------------------------------
> *From:* ABD ALRHMAN ABO ALKHEEL
> *Sent:* Saturday, August 1, 2020 3:19 PM
> *To:* gem5 users mailing list <gem5-users@gem5.org>; gem5-users <
> gem5-users-boun...@gem5.org>
> *Subject:* Reading from memory in Gem5
>
> Hi All, how to read data from memory in Gem5 ? Can I read data from memory
> in Gem5  for a specific addresses? If so, should I use the virtual address
> or physical address? For example, how load instructions read the data from
> memory? Any help would be appreciated. Thanks
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to