|
From: Julian S. <js...@ac...> - 2006-06-14 11:04:59
|
> > 2. I'm passing BB's to LibVEX_Translate with the orig_addr argument set > > to point to the first instruction in the BB You need to be clear about the meaning of "point to the first instruction in the BB". (Didn't we discuss this before?) Vex is set up so that a bb to be translated is characterised by two addresses: the address which they happen to reside in the host's memory (VexTranslateArgs.guest_bytes) and the address which they are claimed to come from in the guest (simulated) machine's memory (VexTranslateArgs.guest_bytes_addr). > > but the translation that > > comes out does not match the translation from just running valgrind > > --tool=none --trace-flags=10000000 --trace-notbelow=0. And it's not a > > pre/post IR optimization issue because I also compared against all the > > other --trace-flags. As Nick says, you need to send some examples of what you put in, what you got out and how that differs from what you expected to see. Without that it's more or less impossible for us to diagnose. > > Is there a > > particular format the BB's have to be in for VEX, e.g. have some kinda > > header? No. J |