Attribute Macro panda_macros::mmio_after_read [−][src]
#[mmio_after_read]
Expand description
(Callback) Called after MMIO memory is read.
Callback ID: PANDA_CB_MMIO_AFTER_READ Arguments: CPUState *env: the current CPU state target_ptr_t physaddr: the physical address being read from target_ptr_t vaddr: the virtual address being read from size_t size: the size of the read uin64_t *val: the value being read Helper call location: cputlb.c Return value: none
Callback arguments: (&mut CPUState
, target_ptr_t
, target_ptr_t
, usize
, *mut u64
, )
Example
use panda::prelude::*; #[panda::mmio_after_read] fn callback(_: &mut CPUState, _: target_ptr_t, _: target_ptr_t, _: usize, _: *mut u64, ) { // do stuff }