[−][src]Attribute Macro panda::phys_mem_after_read
#[phys_mem_after_read]
(Callback) Called after memory is read.
Callback ID: PANDA_CB_PHYS_MEM_AFTER_READ Arguments: CPUState *env: the current CPU state target_ptr_t pc: the guest PC doing the read target_ptr_t addr: the (physical) address being read size_t size: the size of the read uint8_t *buf: pointer to data just read Helper call location: TBA Return value: none
Callback arguments: (&mut CPUState
, target_ptr_t
, target_ptr_t
, usize
, *mut u8
, )
Example
use panda::prelude::*; #[panda::phys_mem_after_read] fn callback(_: &mut CPUState, _: target_ptr_t, _: target_ptr_t, _: usize, _: *mut u8, ) { // do stuff }