On Mon, Aug 27, 2012 at 4:01 PM, Saman Khoshbakht <[email protected]>wrote:

> Hi all,
>
> I am new to MARSS86, and as part of my research I need to have access to
> the data that is being written to the memory (or cache) and compare it to
> the data that was already on the same address. basically I am keeping track
> of the changes in the memory in every cycle. If I get it correctly, PTLSim
> keeps track of the address (the tag) and the state of each cache line, but
> not the data.
> My question is, how can I access the data that is to be written in the
> memory/cache and compare it to the previous data that was there?
> Any help will be greatly appreciated.
>
> To trace what is being written on some address check out 'storemask_virt'
function.  The place where this function is called, you can also use
'loadvirt' function to read data before store.  Just make sure you use same
virtual address and size as in store function otherwise you might end up
calling page fault handler which will corrupt simulation state.

- Avadh

> Cheers,
> Saman Khoshbakht
> ------------------------
> PhD Student,
> Department of Electrical and Computer Engineering
> University of Victoria,
> Victoria, BC, Canada
>
>
> _______________________________________________
> 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

Reply via email to