Attribute Macro panda_macros::virt_mem_before_read [−][src]
#[virt_mem_before_read]
Expand description
(Callback) Called before memory is read.
Callback ID: PANDA_CB_VIRT_MEM_BEFORE_READ
Arguments:
CPUState *env: the current CPU state
target_ptr_t pc: the guest PC doing the read
target_ptr_t addr: the (virtual) address being read
size_t size: the size of the read
Helper call location: TBA
Return value:
none
Callback arguments: (&mut CPUState
, target_ptr_t
, target_ptr_t
, usize
, )
Example
use panda::prelude::*;
#[panda::virt_mem_before_read]
fn callback(_: &mut CPUState, _: target_ptr_t, _: target_ptr_t, _: usize, ) {
// do stuff
}