Hi guys!
        My program is like below.There are two “store” operation in it, one 
stores “a" into log region, the other stores “a” into normal region.
“
 Int main(){
        char* log = malloc(1G);
        writeLog(a);
        write(a);
}
”
Now I want gem5 to distinguish writes toward two regions(log region and data 
region). And I think of two ways to achieve this.
One is to let gem5 memory controller differentiate write requests which is 
toward log region from those that is toward normal region.
I want to use  pkt->adds() to achieve distinguish. However, I don't know how to 
let gem5 know the start address of the log region (in program I could only see 
virtual address, while memory controller sees physical address.)

The other is to split memory range into two region(a log region and a data 
region). I found in source code gem5 simulates physical memory by  “pmem = 
mmap(range.size()). Are there any method to let program knows which memory 
region is log region.Then I could store into log region in my program. 

Thanks a lot.

_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to