|
From: Nicholas N. <nj...@cs...> - 2006-03-08 03:52:04
|
On Wed, 8 Mar 2006, Dave Airlie wrote: > I'd really like to know though what the system was going to write > before it wrote it as well, as some graphics chips may have write-only > registers, where readback gives a totally different answer... in that > case do I need to do that hard work? In that case you need to pass in the to-be-stored value to trace_store(). Imagine a store, something like: STORE (t1), t2 which stores the value in register t2 in the address pointed to by t1. Currently you're passing in t1 to trace_store(). You want to also pass in t2. You are already almost doing it -- you have three args in the instrumentation code, but trace_store() only takes two. I don't think data_expr is what you want, but you're close. Memcheck and/or Cachegrind must do similar things in places. Nick |