Attribute Macro panda_macros::after_machine_init
source · #[after_machine_init]
Expand description
(Callback) Called right after the machine has been initialized, but before any guest code runs.
Callback ID: PANDA_CB_AFTER_MACHINE_INIT
Arguments:
void *cpu_env: pointer to CPUState
Helper call location: TBA
Return value:
none
Notes:
This callback allows initialization of components that need
access to the RAM, CPU object, etc. E.g. for the taint2 plugin,
this is the appropriate place to call taint2_enable_taint().
Callback arguments: (&mut CPUState
, )
Example
use panda::prelude::*;
#[panda::after_machine_init]
fn callback(_: &mut CPUState, ) {
// do stuff
}