Hi Muhammad,
I would like to access memory to read data from it for debugging purpose? 
Kindly can you tell how did you create a cpu port to access memory and read the 
256 bytes from a specific address? Thanks
________________________________
From: Muhammad Aamir via gem5-users <gem5-users@gem5.org>
Sent: Wednesday, September 2, 2020 7:29 PM
To: gem5 users mailing list <gem5-users@gem5.org>
Cc: Muhammad Aamir <aamir.sa...@bilkent.edu.tr>
Subject: [gem5-users] Cannot read from main memory with a new cpu port similar 
to dcacheport

Hi everyone,

I have created a new cpu port which accesses the main memory and bypassing the 
caches when reading from memory. When I try to read from the main memory via 
this port, I sometimes fail to read it and it is read as a 0. This only happens 
when I try to read a value almost after updating it. i.e. it does not update 
that value in the main memory.

What I think is that the value is still stored in the cache, and the cache has 
not yet updated that value in the memory.
How can I make sure that the cache has also written it to the main memory? i.e. 
enforce writethrough.

If my observation is wrong, would someone correct me as to why this is 
happening and what I might be doing wrong?


Thanks,
Aamir
_______________________________________________
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