[panda-users] pc in PANDA_CB_BEFORE_BLOCK_EXEC
Igor R
boost.lists at gmail.com
Thu May 7 14:14:04 EDT 2015
> TranslationBlock::pc is updated at the start of a block, and also if
> an exception occurs mid-block (so that exceptions can have the correct
> program counter).
>
> CPUState::panda_guest_pc is updated every instruction. So, for
> example, you can check its value in the middle of a memory callback
> without worrying whether the program counter is updated correctly.
But PANDA_CB_BEFORE_BLOCK_EXEC gets invoked just before the BB is
executed, right? So, within this callback CPUState::panda_guest_pc
should point either to the very same instruction, or to the last
instruction of the previous bb (if it's updated after instruction),
shouldn't it?
More information about the panda-users
mailing list