src/iodaFEMU/target/m68k/helper.c
/* Notify CPU of a pending interrupt.  Prioritization and vectoring should
   be handled by the interrupt controller.  Real hardware only requests
   the vector when the interrupt is acknowledged by the CPU.  For
   simplicitly we calculate it when the interrupt is signalled.  */
Notify CPU of a pending interrupt.  Prioritization and vectoring should
be handled by the interrupt controller.  Real hardware only requests
the vector when the interrupt is acknowledged by the CPU.  For
simplicitly we calculate it when the interrupt is signalled.
Notify CPU of a pending interrupt . Prioritization and vectoring should be handled by the interrupt controller . Real hardware only requests the vector when the interrupt is acknowledged by the CPU . For simplicitly we calculate it when the interrupt is signalled .
void m68k_set_irq_level(M68kCPU *cpu, int level, uint8_t vector)
{
    CPUState *cs = CPU(cpu);
    CPUM68KState *env = &cpu->env;
    env->pending_level = level;
    env->pending_vector = vector;
    if (level) {
        cpu_interrupt(cs, CPU_INTERRUPT_HARD);
    } else {
        cpu_reset_interrupt(cs, CPU_INTERRUPT_HARD);
    }
}
void m68k_set_irq_level ( M68kCPU * cpu , int level , uint8_t vector ) { CPUState * cs = CPU ( cpu ) ; CPUM68KState * env = & cpu -> env ; env -> pending_level = level ; env -> pending_vector = vector ; if ( level ) { cpu_interrupt ( cs , CPU_INTERRUPT_HARD ) ; } else { cpu_reset_interrupt ( cs , CPU_INTERRUPT_HARD ) ; } }
Notify CPU of a pending interrupt.
Notify CPU of a pending interrupt .