cpu_event_emitter.h
// called before decoding an instruction after processed interruption
called before decoding an instruction after processed interruption
called before decoding an instruction after processed interruption
static inline void cpu_event_emit_decode(cpu_event_emitter_t *self, cpu_ref cpu, uint16_t pc)
{
    if (self->shared_logger_emitter) {
        logger_event_emit_event_trace(self->shared_logger_emitter, EVENT_DOMAIN_ID_CPU, EVENT_ID_CPU_DECODE);
    }
    _cpu_event_listener_on_decode_t *elem = NULL;
    list_foreach (&self->decode_listeners, elem) {
        elem->callback(elem->context, cpu, pc);
    }
}
static inline void cpu_event_emit_decode ( cpu_event_emitter_t * self , cpu_ref cpu , uint16_t pc ) { if ( self -> shared_logger_emitter ) { logger_event_emit_event_trace ( self -> shared_logger_emitter , EVENT_DOMAIN_ID_CPU , EVENT_ID_CPU_DECODE ) ; } _cpu_event_listener_on_decode_t * elem = NULL ; list_foreach ( & self -> decode_listeners , elem ) { elem -> callback ( elem -> context , cpu , pc ) ; } }
called before decoding an instruction after processed interruption
called before decoding an instruction after processed interruption