|
From: Rick G. <rcg...@ve...> - 2013-04-02 17:00:29
|
Hi, I'm trying to implement support for x86_64 LWP (LightWeight Profiling).
I think I've got the necessary decode content in place, but I'm not sure
about the IR generation.
There are 4 instructions for this group
llwpcb <reg64> - this loads the address specified by <reg64> ==
rax/rcx/... into an internal-to-the-processor bit of state.
I'm pretty sure I need something like:
reg = <from the decode>
IRTemp t1 = newTemp(Ity_I64)
assign(t1, getIReg64(reg))
There are no side effects or guest visible bit of state that are
otherwise affected.
Do I need to emit some other 'close-out-the-statement'/irexit() bits?
Similarly, slwpcb <reg64> stores an address into <reg64> from this
internal-to-the-processor state.
Thanks in advance,
Rick Gorton
|