diff --git a/hw/intc/armv7m_nvic.c b/hw/intc/armv7m_nvic.c index 59cc65d4d6..0e8db47ec9 100644 --- a/hw/intc/armv7m_nvic.c +++ b/hw/intc/armv7m_nvic.c @@ -2761,10 +2761,10 @@ type_init(armv7m_nvic_register_types) #include "include/qom/object.h" void libafl_send_irq(int irqn); void libafl_send_irq(int irqn) { - bool haslock = qemu_mutex_iothread_locked(); - if (!haslock) { - qemu_mutex_lock_iothread(); - } + // bool haslock = qemu_mutex_iothread_locked(); + // if (!haslock) { + // qemu_mutex_lock_iothread(); + // } // CPUState *cpu; //CPU_FOREACH(cpu) { //CPUARMState* env = cpu->env_ptr; @@ -2773,8 +2773,8 @@ void libafl_send_irq(int irqn) { // set_irq_level(nvic, irqn, 0); armv7m_nvic_set_pending(nvic, irqn+16, false); //} - if (!haslock) { - qemu_mutex_unlock_iothread(); - } + // if (!haslock) { + // qemu_mutex_unlock_iothread(); + // } } /* End LibAFL instrumentation */ \ No newline at end of file