On Wed, Dec 8, 2010 at 6:09 AM, Shen Zhong <[email protected]> wrote:
> Dear all, > > Suppose I know a certain virtual address, and I need to read the > corresponding data from the main memory in ptlsim, but I don't want to > add an entry to the load store queue, since there was no such load > instruction in the application we are running. > What I found is ptlsim didn't implement the memory itself, what it > does is reading the data from the host memory. Is it right? If so how > can I read the data from the memory after knowing its virtual address? > Yes you are right about no data memory in simulated model. You can read the data using 'Context::loadvirt' function. But before using that function you need to make sure that requested virtual address doesn't have page fault. - Avadh > Thanks a lot! > > -Regards > Shen Zhong > > > _______________________________________________ > http://www.marss86.org > Marss86-Devel mailing list > [email protected] > https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel >
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
