Hi,

I am trying to read the content of cache line requested from memory in
memoryController.cpp.
I use the following code.
               Context* ctx= message->request->get_context();//contextof(
message->request->get_coreid());
ctx->check_and_translate(message->request->get_virtual_address(), 3,
(message->request->get_type()==MEMORY_OP_UPDATE),
    false/*bool internal*/, exception, mmio, pfec);//, bool is_code)

  if(exception)
       cout << "no data" << endl;
     else
             {
W64 data= ctx->loadvirt(message->request->get_virtual_address(),3) ;
cout<< std::hex<< data << std::dec << endl;
     }

The problem is I want all cache lines' content not just some of them.
How can I get content in the case that check_and_translate function
generates exception?

thank you anyway

-Ali
_______________________________________________
http://www.marss86.org
Marss86-Devel mailing list
[email protected]
https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel

Reply via email to