|
From: Scott P. <pa...@la...> - 2010-05-13 22:06:02
|
Julian,
Thanks for the prompt response!
> Passing the identity of bits of the guest state to helper functions
> is pretty dangerous; you need to be careful to tell the IR optimiser
> that that whole section of the guest state can change in arbitrary ways.
I'm just keeping track of which register bytes have been read when.
I'm not actually modifying any part of guest state.
> It's safer to pass values (simulated register contents, really)
> to helper functions.
I'm not sure I understand this. Maybe I didn't ask my question
correctly so let me try again: If my instrumentation code sees
t3 = 0x1000
t4 = Add32(t3, 0x234)
t5 = GETI(128:8xI8)[t4,-1]
then I want the handler function to get passed 0x1234. Is 0x1234 what
you mean by a value/simulated register contents? If so, then what do
I put in my instrumentation code to ensure that the handler sees that
0x1234?
-- Scott
|